Re-Use DataTable for Data Entry
Posted on 2011-04-24
As the quest to drive myself nuts continues....(although I'm getting better....)
I have a datagridview that I bind, through code, a datatable to upon form load. I enter data, click a "save" button and the datatable is "updated" to the database. The form clears, and I want to enter another invoice on the form.... when I do this and click save again, by then calling the DA.update(DS, datatable), the data is not saved....I want this form to be used for data entry so that a user can enter X invoices in a row.
Can someone tell me what the proper steps should be to "re-use" the datatable in the datagridview?