killercobra Posted July 17, 2003 Posted July 17, 2003 I have a datagrid and I want to select multiple records and then get the values of the ID column for each selected row. How can I do this?? thanks. Quote
Moderators Robby Posted July 17, 2003 Moderators Posted July 17, 2003 m_ds is the dataset Dim SelRow As Integer For SelRow = m_ds.Tables(0).Rows.Count() - 1 To 0 Step -1 If DataGrid1.IsSelected(SelRow) = True Then ' 0 would be the ID column messagebox.show(m_ds.Tables(0).Rows(SelRow).Item(0).tostring) End If Next Quote Visit...Bassic Software
killercobra Posted July 23, 2003 Author Posted July 23, 2003 oops. i didnt read above. Is it possible for you to build a sample application with this working? it is not working for me. Quote
Moderators Robby Posted July 23, 2003 Moderators Posted July 23, 2003 What does your attemped code look like? Quote Visit...Bassic Software
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.