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. Advertisements

  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. Advertisements

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,392
    Jacob Yang [MSFT]
    Aug 12, 2003
  2. Himmat Dhange
    Replies:
    0
    Views:
    629
    Himmat Dhange
    Aug 26, 2003
  3. Sanjay
    Replies:
    4
    Views:
    815
    Sanjay
    Nov 20, 2003
  4. thomson

    AcceptChanges Specified Cast ....

    thomson, May 30, 2005, in forum: ASP .Net
    Replies:
    3
    Views:
    563
    thomson
    May 30, 2005
  5. Rio
    Replies:
    4
    Views:
    1,476
  6. Andy B

    DataRow.AcceptChanges is useless?

    Andy B, May 23, 2008, in forum: ASP .Net
    Replies:
    1
    Views:
    2,667
    ChigbuaUmuenu
    May 24, 2008
  7. Marc
    Replies:
    1
    Views:
    1,241
    Munna
    Jul 24, 2008
  8. Marc

    AcceptChanges

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