private
{
datrow[0] = textBox1.Text;
datrow[1] = textBox2.Text;
datrow[2] = textBox3.Text;
datrow[3] = textBox4.Text;
ds1.Tables[0].Rows.Add(datrow);
}
ds1.Tables[0].Rows[rownum][0] = textBox1.Text;
ds1.Tables[0].Rows[rownum][1] = textBox2.Text;
ds1.Tables[0].Rows[rownum][2] = textBox3.Text;
ds1.Tables[0].Rows[rownum][3] = textBox4.Text;
ds1.AcceptChanges();
button1.PerformClick();
ds1.Tables[0].Rows[rownum].Delete();
da1.Update(ds1,