I am simply trying to capture a selected row with the following:
Dim SelectedRows
' Iterate through a collection of selected rows
For i = 0 To
grdGMDList.Selected.Rows.Count - 1
Dim test As String = "yes"
SelectedRows = grdGMDList.Selected.Rows(i)
Next
However, the Selected.Rows.Count is ALWAYS 0. Much of your documentation refers to Row Selectors.
Are there supposed to be Row Selectors on my grid? Because there aren't any. I've searched everywhere. I can't find how to display these Row Selectors. Is this why the Selected.Rows.Count is always 0?
Ok, I FINALLY figured it out (and did so by creating a new test project, and walking through the "wizard" - what a great way to see what properties do what!! :-))
e.Layout.Override.RowSelectors = DefaultableBoolean.True
Hi Terri,
It's good to hear that you were able to solve this. Do you have any further questions related to selected rows in the grid? Please let me know whether you consider this issue solved.
Once I was able to show the Record Selector, it worked; the selected row gets "set", and I then I capture that in a "view detail" button that I use to show that record in a detail form, even adding ValueLists on to combo boxes, by iterating through each row's cells, to see if a ValueList exist, so very nice.
Yes, this issue is solved, and if I run across anything else, I'll post again. Thank you!