SetModified Method

DataRow.SetModified Method ()

 

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

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

public void SetModified()

Changes the P:System.Data.DataRow.Rowstate of a 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.

.NET Framework
Available since 2.0
Return to top
Show:
© 2016 Microsoft