Home Forums WinForms controls Xceed Grid for WinForms Selecting all rows/columns Reply To: Selecting all rows/columns

Xceed Support
Member
Post count: 5658

For the click on the top left most box, you cannot really implement it as it is part of the Column Manager Row. You could simulate this behavior by putting a push button of exactly the same size at exactly the same place.

Here is a code snippet of a “Select All” function:

<code>
private void button_Click( object sender, EventArgs e )
{
foreach( Xceed.Grid.DataRow row in gridControl1.DataRows )
{
gridControl1.SelectedRows.Add( row );
}
}
</code>

Imported from legacy forums. Posted by CharlesB (had 351 views)