This is a migrated thread and some comments may be shown as answers.

Select all checkbox in RadGridView

0 Answers 234 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Sravanthi
Top achievements
Rank 1
Sravanthi asked on 16 May 2013, 08:41 AM

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;
                                }
                                else
                                {
                                    ab.IsChecked = true;
                                }
                            }
                        }

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


Thanks,
Sravanthi

No answers yet. Maybe you can help?

Tags
GridView
Asked by
Sravanthi
Top achievements
Rank 1
Share this question
or