Hey there,
In the header checkbox's
checkedChanged
event, you need to loop through all the
Repeater
items, find the CheckBox using
FindControl
and set its
checked
value same as the header checkbox. e.g,
CheckBox chkheader = (CheckBox) sender;
foreach (RepeaterItem item in Repeater1.Items)
{
CheckBox chkItem = (CheckBox) item.FindControl("YourCheckBoxID");
if (chkItem != null)
{
chkItem.Checked = chkheader.Checked;
}
}
Hope it helps.
Azee...