DataRow.SetModified Method ()

 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

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: