This question is locked. New answers and comments are not allowed.
Hi Telerik Support,
I need a CheckBox on my column header for select/unselect all gridview items.
My case is, the RadGridView control is created programmatically and I create a new class named MyCustomer for RadGridView datasource:
All cells of the first column (Selected) are created as a CheckBox but the header is not.
How can I create a CheckBox for my header?
Regards,
Aeroth Lin
I need a CheckBox on my column header for select/unselect all gridview items.
My case is, the RadGridView control is created programmatically and I create a new class named MyCustomer for RadGridView datasource:
Create RadGridView control:publicclassMyCutomer{publicboolSelected{get;set;}publicstringName{get;set;}publicstringCompany{get;set;}}
RadGridView grid = new RadGridView(){....};List<MyCustomer> customers = new List<MyCustomer>();for( int index=0;index<10;index++){ customers.Add(New MyCustomer() { .... });}grid.ItemsSource = customers;All cells of the first column (Selected) are created as a CheckBox but the header is not.
How can I create a CheckBox for my header?
Regards,
Aeroth Lin
