To add check box Control to the datagrid list
//add this in the html of the datagrid
''>
To loop through the control
////////////////////////
object obj;
HtmlInputCheckBox chk;
//loop through each controls
foreach (Control objCtrl in this.DataGrid1.Items)
{
obj = objCtrl.FindControl("chkID");
chk = (HtmlInputCheckBox)(obj);
if(chk.Checked==true)
{
// do somethings
}
}
0 comments:
Post a Comment