G
Guest
I have datagrid , i edited the template column by adding checkbox on in
templateheader and one in templateitem
the problem i have i can not get access to the checkbox at runtime , i did
this to get them but not worked:
string ClientID = "";
foreach(DataGridItem item in dgAddresses.Items)
{
CheckBox chk = item.FindControl("chbAll") as CheckBox;
if(chk != null)
ClientID = chk.ID;
else continue;
}
how can i get access to them?
templateheader and one in templateitem
the problem i have i can not get access to the checkbox at runtime , i did
this to get them but not worked:
string ClientID = "";
foreach(DataGridItem item in dgAddresses.Items)
{
CheckBox chk = item.FindControl("chbAll") as CheckBox;
if(chk != null)
ClientID = chk.ID;
else continue;
}
how can i get access to them?