Table.AcceptChanges() throws DeletedRowInaccessibleException

Discussion in 'ASP .Net Datagrid Control' started by Fred Zolar, May 3, 2004.

  1. Fred Zolar

    Fred Zolar Guest

    Table.AcceptChanges() throws DeletedRowInaccessibleException

    When I delete a row from my datagrid and then access the deleted rows with

    oTable = m_oTable.GetChanges(DataRowState.Deleted);

    dotNET throws an error when I later call AcceptChanges() on the table.

    GetChanges(DataRowState.Modified) and GetChanges(DataRowState.Added) works
    fine. Anybody seen this error for AcceptChanges() before?
     
    Fred Zolar, May 3, 2004
    #1
    1. Advertising

  2. hi,

    why are using GetChanges method?

    bye


    "Fred Zolar" <> wrote in message
    news:...
    > Table.AcceptChanges() throws DeletedRowInaccessibleException
    >
    > When I delete a row from my datagrid and then access the deleted rows with
    >
    > oTable = m_oTable.GetChanges(DataRowState.Deleted);
    >
    > dotNET throws an error when I later call AcceptChanges() on the table.
    >
    > GetChanges(DataRowState.Modified) and GetChanges(DataRowState.Added) works
    > fine. Anybody seen this error for AcceptChanges() before?
    >
    >
     
    Michael Tkachev, May 5, 2004
    #2
    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. David Williams
    Replies:
    2
    Views:
    1,156
    Jacob Yang [MSFT]
    Aug 12, 2003
  2. thomson

    AcceptChanges Specified Cast ....

    thomson, May 30, 2005, in forum: ASP .Net
    Replies:
    3
    Views:
    486
    thomson
    May 30, 2005
  3. Andy B

    DataRow.AcceptChanges is useless?

    Andy B, May 23, 2008, in forum: ASP .Net
    Replies:
    1
    Views:
    2,453
    ChigbuaUmuenu
    May 24, 2008
  4. Marc
    Replies:
    1
    Views:
    1,020
    Munna
    Jul 24, 2008
  5. Marc

    AcceptChanges

    Marc, Sep 13, 2008, in forum: ASP .Net
    Replies:
    1
    Views:
    402
Loading...

Share This Page