Hello,
Dim x As X= DirectCast(XBindingSource.Current, X)
The problem is that XBindingSource.Current is always nothing, and thus x is always nothing despite there being items in the grid and with one of the rows selected.
Does anyone have any ideas why the 'current' property is nothing?
NB: This grid is editable, and I have set the 'CellClickAction' property to be 'EditAndSelectText' - could this be part of the problem?
Hi,
To identify the currently selected row(s) in the grid use the UltraGrid.Selected.Rows collection. If you have enabled UltraGrid.DisplayLayout.Override.SelectTypeRow = Infragistics.Win.UltraWinGrid.SelectType.Extended then there can be more than one item in the collection.
To get to the underlying bound data from there you can use the ListObject property of the row.
Andy.
Hi Andy,
grid.Selected.Rows does NOT have the correct value within AfterRowActivate event handler.
The software I'm working on requires certain operations when one or several data rows are selected.
Can you advice what's the best approach?
Regards,
Jun
Thanks Andy