Update requires a valid DeleteCommand when passed DataRow collection with deleted rows.
This is the error I get when I'm deleting a row in my datagrid. I referred my code to a running program but when I embedded it on my own it occured that way. Here's the code:
myConn.Open();
dTable = new DataTable("Records");
dTable = this.ds.Tables[0];
int i = this.iRowIndex;
dTable.Rows[i].Delete();
this.da.Update(dTable);
Any suggestions?