DataRow.SetAdded Method ()


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

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

public void SetAdded()

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

.NET Framework
Available since 2.0
Return to top