+2002-12-15 Ville Palo <vi64pa@koti.soon.fi>\r
+\r
+ * DataRow.cs:\r
+ * DataRowCollection.cs: Moved event triggering from DataRow to\r
+ DataRowCollection.\r
+ \r
2002-12-09 Ville Palo <vi64pa@koti.soon.fi>\r
\r
* DataSet.cs: Little fix to WriteTable () -method \r
case DataRowVersion.Proposed:
return proposed[columnIndex];
case DataRowVersion.Current:
- return current[columnIndex];
+ return current[columnIndex];
case DataRowVersion.Original:
return original[columnIndex];
default:
switch (rowState) {
case DataRowState.Added:
Table.Rows.Remove (this);
- _table.DeletedDataRow (this, DataRowAction.Delete);
break;
case DataRowState.Deleted:
throw new DeletedRowInaccessibleException ();
public void Remove (DataRow row)
{
list.Remove (row);
+ table.DeletedDataRow (row, DataRowAction.Delete);
}
/// <summary>
/// Removes the row at the specified index from the collection.
/// </summary>
public void RemoveAt (int index)
- {
- list.RemoveAt (index);
+ {
+ DataRow row = (DataRow)list [index];
+ list.RemoveAt (index);
+ table.DeletedDataRow (row, DataRowAction.Delete);
}
///<summary>