[Mono-bugs] [Bug 651552] New: ListChanged not fired on DataView.AddNew()

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Thu Nov 4 19:29:42 EDT 2010


https://bugzilla.novell.com/show_bug.cgi?id=651552

https://bugzilla.novell.com/show_bug.cgi?id=651552#c0


           Summary: ListChanged not fired on DataView.AddNew()
    Classification: Mono
           Product: Mono: Class Libraries
           Version: 2.6.x
          Platform: x86
        OS/Version: Windows 7
            Status: NEW
          Severity: Normal
          Priority: P5 - None
         Component: Sys.Data
        AssignedTo: mono-bugs at lists.ximian.com
        ReportedBy: cvolzke at live.com.au
         QAContact: mono-bugs at lists.ximian.com
          Found By: ---
           Blocker: ---


User-Agent:       Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US)
AppleWebKit/532.5 (KHTML, like Gecko) Chrome/4.1.249.1036 Safari/532.5

ListChanged not fired on DataView.AddNew()

Reproducible: Always

Steps to Reproduce:
            DataTable table = new DataTable();
            DataView view = table.DefaultView;
            ListChangedEventArgs lastListChanged = null;
            view.ListChanged += (sender, e) => { lastListChanged = e; };
            DataRowView row = view.AddNew();
            Assert.AreEqual(lastListChanged.ListChangedType,
ListChangedType.ItemAdded);

Actual Results:  
DataView.AddNew() does not fire the ListChanged event

Expected Results:  
DataView.AddNew() should fire the ListChanged event with
ListChangedType.ItemAdded

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


More information about the mono-bugs mailing list