K
Kulwinder
Hello,
I've got a checkbox column in a datagrid. In the HeaderTemplate I've got a
checkbox that, when clicked, should go and and replicate it's checked state
to all other checkboxes in the same column.
To facilitate this I've created a wrapper classfor the header checkbox, that
implements the ITemplate interface, and in the InstantiateIn method I duely
wire up the checkbox, which is a member variable of the class, to an aevent
handler for the checkChanged event.
Now this all works just fine if I'm checking the check box in the header
row. If I'm unchecking it, the checkchanged event handler doesn't get called.
Any ideas? I've got Autopostback turned to true for the checkbox in the
header template.
Also if I create a second column of checkboxes again with a checkbox in the
header template, and if one of the header checkboxes is already checked and
Icheck the second header checkbox, the checkchanged event handler for both
header checkboxes get executed?!!! I'm completely stumped. Some help would me
much appreciated. Thanks.
I've got a checkbox column in a datagrid. In the HeaderTemplate I've got a
checkbox that, when clicked, should go and and replicate it's checked state
to all other checkboxes in the same column.
To facilitate this I've created a wrapper classfor the header checkbox, that
implements the ITemplate interface, and in the InstantiateIn method I duely
wire up the checkbox, which is a member variable of the class, to an aevent
handler for the checkChanged event.
Now this all works just fine if I'm checking the check box in the header
row. If I'm unchecking it, the checkchanged event handler doesn't get called.
Any ideas? I've got Autopostback turned to true for the checkbox in the
header template.
Also if I create a second column of checkboxes again with a checkbox in the
header template, and if one of the header checkboxes is already checked and
Icheck the second header checkbox, the checkchanged event handler for both
header checkboxes get executed?!!! I'm completely stumped. Some help would me
much appreciated. Thanks.