Author: toshok
Date: 2006-06-21 07:39:18 -0400 (Wed, 21 Jun 2006)
New Revision: 61899

Modified:
   trunk/mcs/class/System.Data/System.Data/ChangeLog
   trunk/mcs/class/System.Data/System.Data/DataView.cs
Log:
2006-06-21  Chris Toshok  <[EMAIL PROTECTED]>

        * DataView.cs: update the index after we successfully add the new
        row.  This keeps the dataview's row view count in sync with the
        table.



Modified: trunk/mcs/class/System.Data/System.Data/ChangeLog
===================================================================
--- trunk/mcs/class/System.Data/System.Data/ChangeLog   2006-06-21 11:02:12 UTC 
(rev 61898)
+++ trunk/mcs/class/System.Data/System.Data/ChangeLog   2006-06-21 11:39:18 UTC 
(rev 61899)
@@ -1,3 +1,9 @@
+2006-06-21  Chris Toshok  <[EMAIL PROTECTED]>
+
+       * DataView.cs: update the index after we successfully add the new
+       row.  This keeps the dataview's row view count in sync with the
+       table.
+
 2006-06-20  Chris Toshok  <[EMAIL PROTECTED]>
 
        * DataView.cs: the PropertyDescriptorCollection returned by

Modified: trunk/mcs/class/System.Data/System.Data/DataView.cs
===================================================================
--- trunk/mcs/class/System.Data/System.Data/DataView.cs 2006-06-21 11:02:12 UTC 
(rev 61898)
+++ trunk/mcs/class/System.Data/System.Data/DataView.cs 2006-06-21 11:39:18 UTC 
(rev 61899)
@@ -392,6 +392,7 @@
                                        dataTable.Rows.Add(_lastAdded);
                                        //OnListChanged(new 
ListChangedEventArgs(ListChangedType.ItemAdded, Count - 1, -1));
                                        _lastAdded = null;
+                                       UpdateIndex ();
                                }
                                catch(Exception e) {
                                        _lastAdded = dr;

_______________________________________________
Mono-patches maillist  -  [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches

Reply via email to