Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

MS Datagrid VB6 - Selecting multiple rows

Status
Not open for further replies.

nician

Programmer
Jul 15, 2003
10
0
0
US
I am stuck. I have a datagrid which the user can select multiple rows. The selected row can be captured in the _SelChange event. What I can't figure is how to capture those row numbers in an array.

Once captured I can loop through the row numbers and capture the sequence value in one of the columns. Then I will loop through an SQL statement using the sequence values. But the array has me stuck.

thanks
 
Wouldn't you know it. I figured it out shortly after posting. :(

If DataGrid.Row > -1 Then
intRowSelected(i) = DataGrid.Row
End If

Thanks
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top