Hi all
I need to check the type of the object (row) user was selected from the grid. I tried use datasource.current, but it return the parent object (which included the child object). I need to identify the type of selected object (row) because right click parent band and child band should show different menu strip.
Any idea?
BR
Bryan
The control exposes a Selected property, which in turn exposes collection properties like Rows, Cells, and Columns. Depending on which is selected, one of those properties will contain one or more members; in the case where one row is selected, you can get a reference to that row using UltraGrid.Selected.Rows[0].
UltraGrid also exposes an ActiveRow property, which basically returns the row with the focus (shows a dotted rectangle around it).