Solved

Flex Grid, Select an Entire Row

Posted on 2000-03-31
2
129 Views
Last Modified: 2010-05-02
I was wondering if it was possible to select an entire row automatically. What I want the user to do is click on a button then a list of the rows will pop up and from there they can select which row they want to remove. I know the user can do it click on a fixed row, I don't want them to do that. I was wondering if there was a way for the program to do it by themselves without the user click on the fixed row.

Thanks.
0
Comment
Question by:da_dawg88
2 Comments
 
LVL 32

Expert Comment

by:Erick37
ID: 2673283
Private Sub Command1_Click()
    With MSFlexGrid1
    'set row 2, col 0
    .Row = 2
    .Col = 0
    'select all cols in row
    .ColSel = .Cols - 1
    End With
End Sub
0
 
LVL 6

Accepted Solution

by:
VBGuru earned 50 total points
ID: 2673322
check out using
MSFlexGrid1.RowSel
0

Featured Post

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction I needed to skip over some file processing within a For...Next loop in some old production code and wished that VB (classic) had a statement that would drop down to the end of the current iteration, bypassing the statements that were c…
Most everyone who has done any programming in VB6 knows that you can do something in code like Debug.Print MyVar and that when the program runs from the IDE, the value of MyVar will be displayed in the Immediate Window. Less well known is Debug.Asse…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…

773 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question