Re: Checkboxes in a datagrid



Now I can access the DataKeyNames by the following code

protected void CheckBox1_CheckedChanged(object sender, EventArgs e)
{
CheckBox checkbox = (CheckBox)sender;
GridViewRow row = (GridViewRow)checkbox.NamingContainer;
Response.Write(row.Cells[0].Text);
}

But I have kept the 0th column visible=false. Then I cant get it by the
above code. Is there any solution for this

.