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

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

    Hi,

    Is there a ‘Select All’ API that would select all rows?

    thanx

    Imported from legacy forums. Posted by kozu (had 1585 views)

    User (Old forums)
    Member
    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)

    User (Old forums)
    Member
    Post count: 23064

    Thanks, that worked!

    Imported from legacy forums. Posted by kozu (had 1598 views)

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