Hi,
To you insert the records into the database, you need to read each row in the gridview by inserting the records.
Here! An example.
private void Booking_Tax(Int32 id)
{
string str = ConfigurationManager.ConnectionStrings["ConStr"].ConnectionString;
SqlConnection con = new SqlConnection(str);
con.Open();
SqlCommand cmd = new SqlCommand();
cmd.Connection = con;
cmd.CommandType = CommandType.Text;
foreach (GridViewRow gvrow in this.grd_result.Rows)
{
cmd.CommandText = "INSERT INTO mytable (id, tax1, taxt2) VALUE (" + id.ToString() + ", " + gvrow.Cells[0].Text + ", " + gvrow.Cells[2].Text + ")";
cmd.ExecuteNonQuery();
}
}