How post changes to current row?

Discussion in 'ASP .Net Datagrid Control' started by Bill, Jul 13, 2005.

  1. Bill

    Bill Guest

    I have a DataGrid bound to a DataTable. If the user makes changes to a
    row and does not move off of that row before I call DataAdapter.Update
    the changes are not made to the database. How, in code, can I post the
    changes to the current row to the underlying DataTable so that calling
    DataAdapter.Update will update the database?

    Note that I have tried calling DataGrid.EndEdit and that does not work.
    I have also tried calling CurrencyManager.EndCurrentEdit and that does
    not work. The only thing that does work is changing the value of
    CurrencyManager.Postion to move to another row, however, that does not
    work when there is only one row in the table.

    This should be easy so I must be missing something.

    --
    ..Bill.
     
    Bill, Jul 13, 2005
    #1
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. TPS

    Current web directory changes?

    TPS, Jan 7, 2004, in forum: ASP .Net
    Replies:
    12
    Views:
    773
    Alvin Bruney
    Jan 17, 2004
  2. Jona
    Replies:
    1
    Views:
    656
    Jack Klein
    May 24, 2007
  3. D
    Replies:
    0
    Views:
    220
  4. Andrus

    Insert new row before current row

    Andrus, Jun 29, 2003, in forum: Javascript
    Replies:
    0
    Views:
    108
    Andrus
    Jun 29, 2003
  5. John L.
    Replies:
    10
    Views:
    239
    Thomas 'PointedEars' Lahn
    May 18, 2009
Loading...

Share This Page