Select all checkbox in RadGridView

1 posts, 0 answers
  1. Sravanthi
    Sravanthi avatar
    6 posts
    Member since:
    May 2013

    Posted 16 May 2013 Link to this post

    Hello Team,

    I have a RadGridView with checkbox column  and also have another checkbox on header for selecting all checkbox. One user select header checkbox all the checkboxes in the rows should be selected. Here is my code

    for (int j = 0; j <= ChecklistOfEditLoadItems.Count; j++)
                                GridViewRow row =
                                    this.editload.ItemContainerGenerator.ContainerFromItem(ChecklistOfEditLoadItems[j]) as GridViewRow;
                                if (row != null)
                                    TruckInventorySolution s = row.Item as TruckInventorySolution;
                                    CheckBox ab = row.FindChildByType<CheckBox>();
                                    if (row.IsEnabled == false || s.IsCommitted == true)
                                        ab.IsChecked = false;
                                        ab.IsChecked = true;

    but this process is very very slow.. Please help to solve this problem.

Back to Top