DataSet Update does not work

Aug 14 2006 5:49 PM
Codes: x = Form1.dataGridView1.CurrentRow.Index; Form1.sqlConnection1.Open(); Form1.dataSet1.Tables["Table01"].Rows[x].BeginEdit(); Form1.dataSet1.Tables["Table01"].Rows[x].ItemArray[0] = textBox1.Text; Form1.dataSet1.Tables["Table01"].Rows[x].ItemArray[1] = textBox2.Text; Form1.dataSet1.Tables["Table01"].Rows[x].ItemArray[2] = textBox3.Text; Form1.dataSet1.Tables["Table01"].Rows[x].ItemArray[3] = textBox4.Text; Form1.dataSet1.Tables["Table01"].Rows[x].EndEdit(); Form1.sqlCommandBuilder1 = new SqlCommandBuilder(Form1.sqlDataAdapter1); Form1.sqlDataAdapter1 = Form1.sqlCommandBuilder1.DataAdapter; Form1.sqlDataAdapter1.Update(Form1.dataSet1, "Table01"); Form1.dataSet1.AcceptChanges(); Form1.sqlConnection1.Close(); Please Help Thank you