این قطعه کد چرا error می گیره ؟
{
string strconnection = "server=shervin;database=university;uid=sa;pwd=123 4567890";
SqlConnection conn = new SqlConnection(strconnection);
string commandstring = "select * from account ";
SqlDataAdapter dataadapter = new SqlDataAdapter(commandstring, conn);
DataSet ds = new DataSet();
dataadapter.Fill(ds, "account");
DataTable datatable = ds.Tables["account"];
//textBox1.Text = datatable.Rows.Count.ToString();
// dataadapter.Update(ds, "account");
textBox2.Text = datatable.Rows[12]["id"].ToString();
textBox3.Text = datatable.Rows[12]["password"].ToString();
if (textBox1.Text =="1")
{
MessageBox.Show("hello");
DataRow row = datatable.Rows[12];
row.BeginEdit();
row["id"] = "reza";
row.EndEdit();
dataadapter.Update(ds, "account");
ds.AcceptChanges();
}
به ds.AcceptChanges(); گیر می ده