Home › Forums › WinForms controls › Xceed Grid for WinForms › Select All rows API?
Hi,
Is there a ‘Select All’ API that would select all rows?
thanx
Imported from legacy forums. Posted by kozu (had 1585 views)
You can use a foreach loop to loop through the GridControl1.DataRows and add each DataRow element to SelectedRows:
foreach( Xceed.Grid.DataRow row in gridControl1.DataRows ){gridControl1.SelectedRows.Add( row );}
Imported from legacy forums. Posted by Ghislain (had 901 views)
Thanks, that worked!
Imported from legacy forums. Posted by kozu (had 1598 views)