Results 1 to 5 of 5

Thread: [RESOLVED] Bound datagridview not bound?

Threaded View

  1. #1

    Thread Starter
    PowerPoster cicatrix's Avatar
    Join Date
    Dec 2009
    Location
    Moscow, Russia
    Posts
    3,654

    Resolved [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?

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width