In
RowDataBound
event:
1. Look for row type as Header
2. Once found, use FindControl and get the checkbox.
3. Cast the found checkbox into local checkbox variable.
4. Do whatever you like with this checbox now. Disable it.
Done.
Sample:
void GridView1_RowDataBound(Object sender, GridViewRowEventArgs e)
{
if(e.Row.RowType == DataControlRowType.Header)
{
CheckBox cb = (CheckBox)e.Row.FindControl("myCheckBox");
cb.Enabled = false;
}
}