you can simply do it by defining your checkbox in rowdatabound of gridview and then pass the checkbox value to query.
CheckBox chk1 = (CheckBox)GridView1.FooterRow.FindControl("chk1");
CheckBox chk2 = (CheckBox)GridView1.FooterRow.FindControl("chk2");
string chk1,chk2;
if ((chk1.Checked == true) && (chk2.Checked == true))
{
chk1 = "1";
chk2 = "1";
}
else
{
if (chk1 .Checked == true)
{
chk1 = "1";
chk2= "0";
}
else
if (chk2.Checked == true)
{
chk1 = "0";
chk2= "1";
}
}
and use these values into ur insert query
for checkbox insertion
select cast('" + chk1+ "' + ',' + '" + chk2+ "' as varchar(100)) as db_column from tablename