How do I find the currently selected (or active) Row in an UltraGrid

Brett Veenstra picture Brett Veenstra · Jul 16, 2009 · Viewed 19.3k times · Source

Using the Infragistics UltraGrid (e.g. myGrid), I want to:

  1. Hook an event that will fire when active row is changed (selected, clicked, etc).
  2. Do something with the selection

SUMMARY ANSWER

  1. Subscribe to event AfterRowActivate
  2. Get a reference to myGrid.ActiveRow

Answer

Francis B. picture Francis B. · Jul 16, 2009

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.