How do I find the currently selected (or active) Row in an UltraGrid
Question
Using the Infragistics UltraGrid (e.g. myGrid
), I want to:
- Hook an event that will fire when active row is changed (selected, clicked, etc).
- Do something with the selection
SUMMARY ANSWER
- Subscribe to event
AfterRowActivate
- Get a reference to
myGrid.ActiveRow
Solution
The following page talks about the event fired when the active row has changed.
To get the active row, you can use the property yourGrid.ActiveRow or yourGrid.Selected.Rows to get all selected rows.
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow