It seems CheckBoxField won\'t accept an ID property, so I can\'t directly call the component in the code behind file.
In syour design view go to gridview edit columns and select the column and click convert to template field
Now you can add click event as above and your event something like below
protected void CheckBox_CheckedChanged(object sender, EventArgs e)
{
try
{
CheckBox cb = sender as CheckBox;
GridViewRow gr = cb.Parent.Parent as GridViewRow;
string key = GridView1.DataKeys[gr.DataItemIndex].Value.ToString();
}
catch (Exception exc)
{
}
}