Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/mcs
diff options
context:
space:
mode:
authorAtsushi Eno <atsushieno@gmail.com>2005-02-01 21:32:18 +0300
committerAtsushi Eno <atsushieno@gmail.com>2005-02-01 21:32:18 +0300
commitd477da0278db063414bc1a816d5a8a9f37e395d2 (patch)
tree365c9ae359643c4d48eecc4519ea05875ec3d5ca /mcs
parentb1ca0f74d8fb23437c6dfb4ede07ab05d80ee0e8 (diff)
2005-02-01 Atsushi Enomoto <atsushi@ximian.com>
* DataRowCollection.cs : on adding a row, should raise ChangingDataRow() as well as ChangedDataRow(). svn path=/trunk/mcs/; revision=39934
Diffstat (limited to 'mcs')
-rw-r--r--mcs/class/System.Data/System.Data/ChangeLog5
-rw-r--r--mcs/class/System.Data/System.Data/DataRowCollection.cs3
2 files changed, 8 insertions, 0 deletions
diff --git a/mcs/class/System.Data/System.Data/ChangeLog b/mcs/class/System.Data/System.Data/ChangeLog
index 565875a10cc..35b4ea77010 100644
--- a/mcs/class/System.Data/System.Data/ChangeLog
+++ b/mcs/class/System.Data/System.Data/ChangeLog
@@ -1,3 +1,8 @@
+2005-02-01 Atsushi Enomoto <atsushi@ximian.com>
+
+ * DataRowCollection.cs : on adding a row, should raise
+ ChangingDataRow() as well as ChangedDataRow().
+
2005-01-31 Sureshkumar T <tsureshkumar@novell.com>
* DataRow.cs: SetParentRow (): use relation.ParentColumns &
diff --git a/mcs/class/System.Data/System.Data/DataRowCollection.cs b/mcs/class/System.Data/System.Data/DataRowCollection.cs
index 8b1d2e20190..f702cf3739c 100644
--- a/mcs/class/System.Data/System.Data/DataRowCollection.cs
+++ b/mcs/class/System.Data/System.Data/DataRowCollection.cs
@@ -97,6 +97,7 @@ namespace System.Data
// we have to check that the new row doesn't colide with existing row
ValidateDataRowInternal(row);
+ row.Table.ChangingDataRow (row, DataRowAction.Add);
row.HasParentCollection = true;
List.Add (row);
// Set the row id.
@@ -295,6 +296,8 @@ namespace System.Data
// we have to check that the new row doesn't colide with existing row
ValidateDataRowInternal(row);
+ row.Table.ChangingDataRow (row, DataRowAction.Add);
+
if (pos >= List.Count) {
row.RowID = List.Count;
List.Add (row);