Hi,
Please check these lines:
DataSet dataSet = new DataSet();
dataAdapter.Fill(dataSet, "mytable");
DataRow row;
row = dataSet.Tables[0].Rows[0];
row.BeginEdit();
row[0] = "555";
row.EndEdit();
//dataSet.AcceptChanges();
dataAdapter.Update(dataSet, "mytable");
I got this error message on dataAdapter.Update line:
Additional information: Update requires a valid UpdateCommand when passed
DataRow collection with modified rows.
with dataSet.AcceptChanges() I don't get error message but the database is
not really changed. when I use datagrid and use dataAdapter.Update() it
works. what's the problem?
my other question, what's the easiest way to edit a value of a field in a
table?
thanks