|
-
Jul 9th, 2010, 02:26 AM
#1
[RESOLVED] Bound datagridview not bound?
There is something strange going on with my datagridview.
I've a data adapter that fills the underlying data table from a database.
Then I assign this datatable as datasource to the datagridview
Then I add a row to the datagridview and immediately I need to update the table in my database (as soon as user leaves the newly created row).
At this moment I have more rows (+2, not +1) in my datagridview than in the underlying datatable (the new row doesn't exists yet in it so the data adapter .Update method doesn't write anything to the database).
When DataGridView's .RowLeave event fires the undelying datatable is not yet updated. I've a question - is this behavior normal?
Last edited by cicatrix; Jul 9th, 2010 at 02:36 AM.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|