i thinkd you right this
private void btnsave_Click(object sender, EventArgs e)
{
string str = "insert into gridsalry values('" + textBox1.Text + "','" +textBox2.Text+ "','" + textBox3.Text + "','"+textBox4.Text+"','"+textBox5.Text+"','"+textBox6.Text+"','"+textBox7.Text+"','"+textBox8.Text+"')";
con.Open();
cmd = new SqlCommand(str, con);
cmd.ExecuteNonQuery();
con.Close();
gridsalry.update();
}
the record will be update in grid