[Mono-bugs] [Bug 557289] New: [Regression] DataTable.EndCurrentEdit is not working

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Fri Nov 20 11:49:39 EST 2009



           Summary: [Regression] DataTable.EndCurrentEdit is not working
    Classification: Mono
           Product: Mono: Class Libraries
           Version: SVN
          Platform: Other
        OS/Version: openSUSE 11.0
            Status: NEW
          Severity: Normal
          Priority: P5 - None
         Component: Sys.Data
        AssignedTo: bnc-blr-team-mono at forge.provo.novell.com
        ReportedBy: calberto.cortez at gmail.com
         QAContact: mono-bugs at lists.ximian.com
          Found By: ---
           Blocker: ---

User-Agent:       Mozilla/5.0 (X11; U; Linux i686; es-ES; rv:
Gecko/2009090900 SUSE/3.0.14-0.1.2 Firefox/3.0.14

Working with a DataView from a DataTable: calling AddNew () causes a
ListChanged event with ListChangedType.ItemAdded, and we are supposed the same
event when confirming the addition by calling IEditableObject.EndEdit () on the
just added object:

DataTable table = ...;
IBindingList list = ((IListSource)table).GetList () as IBindingList;
IEditableObject new_object = list.AddNew () as IEditableObject;
new_object.EndEdit (); // this is *not* causing a ListChanged event

This is a major problem since it's a *regression* from previous versions, and
second, because it's affecting our DataGrid impl in winforms. I guess we are
missing test cases for this feature?

ALSO: I remember this one was working 3-4 weeks ago, so it's probably a recent

Reproducible: Always

Steps to Reproduce:
use the test case
Actual Results:  
we are getting just one call to our delegate, which prints info about the
ListChanged event.

Expected Results:  
We should get two calls to our even handler, both of them should be 

Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.

More information about the mono-bugs mailing list