Hi all
What is the most straight forward way to get the selected record (the BindingSource type datasource's item, not the grid's ultragridrow)?
What I desire was be able to get the selected record from the datasource itself directly. Same to the active row.
Regards
Bryan
Use the ListObject property on the UltraGridRow to get the underlying data object from the grid's DataSource.
So something like this:
grid.ActiveRow.ListObject
foolish me
datasource1.current
[Bryan Edit]
Just tried. The current call still return record when there is no selected row in the grid. So this is no a good solution.