Click here to Skip to main content
15,891,184 members

Comments by Manoj Ninganiya (Top 3 by date)

Manoj Ninganiya 4-Oct-13 1:33am View    
but there is one problem all over thing is in nested repeater so first find outer repeater and then find inner repeater on CheckAll_CheckedChanged event so please tell me how to find repeaters
Manoj Ninganiya 4-Oct-13 1:30am View    
for (int i = 0; i < rptCC.Items.Count; i++)
{
CheckBox chk = (CheckBox)rptCC.Items[i].FindControl("CheckSelect");
if (chkAll.Checked)
{
chk.Checked = true;
}
}
like that boss
Manoj Ninganiya 4-Oct-13 1:22am View    
protected void Checkheader_CheckedChanged(object sender, EventArgs e)
{
var item = ((CheckBox)sender).Parent as RepeaterItem;
CheckBox chkAll = item.FindControl("CheckAll") as CheckBox;
Repeater rpt = (Repeater)(sender as Control).Parent.Parent.Parent.Parent;
RepeaterItem rptitme =(RepeaterItem) rpt.FindControl("CheckSelect");
CheckBox chk = item.FindControl("CheckSelect") as CheckBox;
CheckBox chkchk = rpt.Controls[0].Controls[0].FindControl("CheckSelect") as CheckBox;
if (chkAll.Checked == true)
{

}

}


find above code "CheckSelect" checkbox in this block