[Mono-bugs] [Bug 76221][Wis] New - DataView generates redundant IBindingList Reset events

bugzilla-daemon at bugzilla.ximian.com bugzilla-daemon at bugzilla.ximian.com
Sun Sep 25 06:53:45 EDT 2005


Please do not reply to this email- if you want to comment on the bug, go to the
URL shown below and enter your comments there.

Changed by chastamar at yahoo.com.

http://bugzilla.ximian.com/show_bug.cgi?id=76221

--- shadow/76221	2005-09-25 06:53:45.000000000 -0400
+++ shadow/76221.tmp.11924	2005-09-25 06:53:45.000000000 -0400
@@ -0,0 +1,44 @@
+Bug#: 76221
+Product: Mono: Class Libraries
+Version: 1.1
+OS: GNU/Linux [Other]
+OS Details: 
+Status: NEW   
+Resolution: 
+Severity: 
+Priority: Wishlist
+Component: Sys.Data
+AssignedTo: mono-bugs at ximian.com                            
+ReportedBy: chastamar at yahoo.com               
+QAContact: mono-bugs at ximian.com
+TargetMilestone: ---
+URL: 
+Cc: 
+Summary: DataView generates redundant IBindingList Reset events
+
+Description of Problem:
+DataView's implementation of IBindingList incorrectly generates events 
+when items are added to/removed from the list; when an item is added, a 
+Reset event is generated and only then an ItemAdded event is generated.
+Same goes when removing an item - a Reset event is generated, followed by 
+an ItemDeleted event.
+
+I'll attach a demo app to illustrate this behaviour. The app was tested 
+on MS .Net; there, only the ItemAdded and ItemDeleted events are 
+generated.
+
+Steps to reproduce the problem:
+1. Compile the attached (below) file with a reference to System.Data.
+2. Run the application and watch the generated events (the app adds a row 
+and then removes a row).
+
+Actual Results:
+Reset events are generated before the ItemAdded and ItemRemoved events.
+
+Expected Results:
+Only ItemAdded and ItemRemoved events should be generated.
+
+How often does this happen? 
+All the time.
+
+Additional Information:


More information about the mono-bugs mailing list