Search code examples
c#infragisticsultrawingrid

How can I select row or rows or cell in Infragistic UltraGrid?


I need to select one row, multiple rows or a cell in Ultragrid to copy from the grid. How can this be accomplish?


Solution

  • Your question isn't very specific, but if you want to get or set the selected row, you can use the .Selected property on the row. You can also use:

    _yourGrid.DisplayLayout.ActiveRow = whateverRowYouWantSelected
    

    For multiple selection, you can use

    _yourGrid.DisplayLayout.SelectedRows