Hi ,
try this
protected void btnview0_Click(object sender, EventArgs e)
{
callgrid();
}
protected void Btnrecv_Click(object sender, EventArgs e)
{
foreach (GridViewRow item in GridView1.Rows)
{
SqlConnection con = new SqlConnection(@"Here YOUR connection ");
con.Open();
string statment = string.Format("insert into test1 ( [name], [address], gender ) values ('{0}','{1}','{2}' )", item.Cells[1].Text , item.Cells[2].Text, item.Cells[3].Text);
SqlCommand cmd = new SqlCommand(statment, con);
cmd.CommandType = CommandType.Text;
cmd.ExecuteNonQuery();
con.Close();
cmd.Dispose();
}
}