When We click a button I want to get the chechbox ChekedID Which is Inside the Row databound
CheckBox checkBox;
protected void grdBindExcel_RowDataBound(object sender, GridViewRowEventArgs e)
{
if (e.Row.RowType == DataControlRowType.Header)
{
for (int i = 0; i < e.Row.Cells.Count; i++)
{
checkBox = new CheckBox();
//checkBox.CssClass = "headerCheckBox";
string val = e.Row.Cells[i].Text;
checkBox.Text = val.ToString();
checkBox.ID = Convert.ToInt32(i).ToString();
e.Row.Cells[i].Controls.Add(checkBox);
checkBox.AutoPostBack = false;
checkBox.CheckedChanged += SelectCheckBox_OnCheckedChanged;
}
}
}