Home Forums WinForms controls Xceed Grid for WinForms Select All rows API? Reply To: Select All rows API?

User (Old forums)
Post count: 23064

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)