Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
230
ctrl-a to select all rows in a hierarchical grid
posted

Hi

I have a hierarchical grid and want to select all rows in that grid. I found a HOWTO at http://devcenter.infragistics.com/Support/KnowledgeBaseArticle.aspx?ArticleID=6546 but if I do it like it is described there only the the band at level 0 gets selected.
When I do it like that:

foreach (UltraGridRow ugr in ultraGrid.Rows.GetRowEnumerator(GridRowType.DataRow, null, null))
{

ultraGrid
.Selected.Rows.Add(ugr);
}

... it is pretty slow. Is there any solution how to select all rows in hierarchical grid with a good performance? Thank you for your help.

Cheers
Dan

Parents
No Data
Reply
  • 469350
    Offline posted

    Hi Dan,

    This will not work. You cannot select rows in more than one band at the same time. You can Submit a feature request to Infragistics.

    The UltraWinTree was recently updated to support selecting rows across multiple levels. So perhaps the tree would better fit the needs of your application? 

Children
No Data