Exception: "Update requires a valid InsertCommand when passed DataRow collection with new rows"
This is the error message i got when i tried to update my database.
The way i'm trying to update is by creating 2 DataRow objects and adding each to a DataTable that i filled with DataAdapters, then i change each column of the new rows to the value of a text box. After that i try to update the DataTables with their respective DataAdapter.
I haven't included any code because there's a lot of code and i'm not sure which parts of it might be relevant. However, if you think you would need to see some of the code, i'll post it.
This is the error message i got when i tried to update my database.
The way i'm trying to update is by creating 2 DataRow objects and adding each to a DataTable that i filled with DataAdapters, then i change each column of the new rows to the value of a text box. After that i try to update the DataTables with their respective DataAdapter.
I haven't included any code because there's a lot of code and i'm not sure which parts of it might be relevant. However, if you think you would need to see some of the code, i'll post it.