how to get this checkbox index
how to get the position /index of checkbox placed inside gridview
GridViewRow headerrow=GrdDynamicControls.HeaderRow;
TableCell tb = headerrow.Cells[i];
string strheaderrow = tb.Text;
if (strheaderrow.Contains( strColumnName))
{
bool val = ((CheckBox)GrdDynamicControls.Rows[i].FindControl("chkStatus")).Checked;
}
how to get this checkbox index开发者_开发问答?/?
any help pls..
You can use Event Args e
e.Item.ItemIndex
it will return an integer
Hope this will help
精彩评论