You will have to loop and update table. Something like following example
protected void UpdateStatus(object sender, EventArgs e)
{
foreach (GridViewRow row in GridView1.Rows)
{
string id = (row.FindControl("lblId") as Label).Text;
bool isChecked = (row.FindControl("CheckBox1") as CheckBox).Checked;
string status = isChecked ? "confirmed" : "pending";
string conString = ConfigurationManager.ConnectionStrings["constr"].ConnectionString;
SqlCommand cmd = new SqlCommand("update myTable set Status = '" + status + "' where Id='" + id + "'");
using (SqlConnection con = new SqlConnection(conString))
{
cmd.Connection = con;
cmd.ExecuteNonQuery();
}
}
}