I've got a grid where multiple rows can be selected. Once the user has selected the information on the grid, I need to cycle through all the selected items to get the datakeys values.
Tried the following in the button event
which returns no data (expecting a Guid)
however, doing the following does return a value
But that only works for a single row selection. What I am trying to do is similar to the following
Something like that... could anyone help (a little time senitive).
Thanks
Q
Tried the following in the button event
| cId = RadGrid1.SelectedItems(0).OwnerTableView.DataKeyValues(RadGrid1.SelectedItems(0).ItemIndex)("CompilationId") |
however, doing the following does return a value
| cId = RadGrid1.SelectedValues("CompilationId") |
But that only works for a single row selection. What I am trying to do is similar to the following
| 'Get number of selected items |
| selectedItems = RadGrid1.SelectedItems.Count -1 |
| 'Get value of DataKey for each selected row |
| For i As Integer = 0 To selectedItems |
| cId = RadGrid1.SelectedItems(i).OwnerTableView.DataKeyValues(RadGrid1.SelectedItems(i).ItemIndex)("CompilationId") |
| 'update the information |
| 'loop or exit |
| Next |
Something like that... could anyone help (a little time senitive).
Thanks
Q