Hi,
It will Help You.
do not fill gridview in page_load
if need filling then use
if(!IsPostBack){
protected void Button1_Click(object sender, EventArgs e)
{
foreach (GridViewRow di in Gridview1.Rows)
{
if (di.RowType == DataControlRowType.DataRow)
{
CheckBox cb = (CheckBox)di.FindControl("CheckBox1");
Boolean isChecked = cb.Checked;
if (isChecked)
{
Response.Write("True \t");
}
else
{
Response.Write("False \t");
}
}
}
}
Keep Coding