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:public
class
MyCutomer
{
public
bool
Selected{
get
;
set
;}
public
string
Name{
get
;
set
;}
public
string
Company{
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