Results 1 to 2 of 2

Thread: Question RE: AcceptChanges method

Threaded View

  1. #1

    Thread Starter
    Fanatic Member
    Join Date
    Sep 2002
    Posts
    518

    Question RE: AcceptChanges method

    If I have an event handler for the DataTable.RowChanged event, and I change some data successfully, and then invoke AcceptChanges for that row, why does RowChanged fire two times? And if I invoke .AcceptChanges again right away for the same row, why does RowChanged fire again? Didn't I accept the changes for that row already, making the RowStatus Unchanged?

    ms-help://MS.VSCC/MS.MSDNVS/cpref/html/frlrfsystemdatadatarowclassacceptchangestopic.htm
    ms-help://MS.VSCC/MS.MSDNVS/cpref/html/frlrfsystemdatadatarowclassrowstatetopic.htm

    Edit: Uh, after stepping through this process in the debugger I see that the RowChanged event has nothing to do with RowState - which makes me wonder how you properly set an event handler for a table to watch for changing data and not have it fire multiple times per change?
    Last edited by Slow_Learner; Sep 25th, 2002 at 09:17 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
  •  



Click Here to Expand Forum to Full Width