|
After binding, add onclick event processing on Checkbox.
datagrid1.DataSource=dt;
datagrid1.DataBind();
for(int i=0;i<datagrid1.Items.Count;i++)
{
CheckBok ck=(CheckBox)datagrid1.Items[i].FindControl("checkbox1");
if(ck!=nul)
{
ck.Attributes.Add("onclick","CheckClick();return false;");
}
}
As for the preparation of Js, please refer to some JS manuals for yourself |
|