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

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • User (Old forums)
    Member
    Post count: 23064
    #15597 |

    Like in excel, how do I click the top left most box (at the intersection of column header and row header) and select all the rows and columns?

    Thanks in advance,
    Mike

    Imported from legacy forums. Posted by mikesyl (had 2307 views)

    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)

    User (Old forums)
    Member
    Post count: 23064

    Thank you.

    Imported from legacy forums. Posted by mikesyl (had 3186 views)

Viewing 3 posts - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.