System.Data.DataRow.SetModified Method

Changes the DataRow.Rowstate of a System.Data.DataRow to Modified.

Syntax

public void SetModified ()

Remarks

Changes the DataRow.Rowstate of a System.Data.DataRow to Modified. If the current row is not in either an Unchanged or an Added state, it throws an InvalidOperationException with the message that SetModified can only be invoked on a DataRow instance where the RowState is Unchanged.

Requirements

Namespace: System.Data
Assembly: System.Data (in System.Data.dll)
Assembly Versions: 2.0.0.0