DataRow Methods

The DataRow type exposes the following members.

  Name Description
Public method AcceptChanges Commits all the changes made to this row since the last time AcceptChanges was called.
Public method BeginEdit Starts an edit operation on a DataRow object.
Public method CancelEdit Cancels the current edit on the row.
Public method ClearErrors Clears the errors for the row. This includes the RowError and errors set with SetColumnError.
Public method Delete Deletes the DataRow.
Public method EndEdit Ends the edit occurring on the row.
Public method Equals(Object) Determines whether the specified object is equal to the current object. (Inherited from Object.)
Protected method Finalize Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.)
Public method GetChildRows(DataRelation) Gets the child rows of this DataRow using the specified DataRelation.
Public method GetChildRows(String) Gets the child rows of a DataRow using the specified RelationName of a DataRelation.
Public method GetChildRows(DataRelation, DataRowVersion) Gets the child rows of a DataRow using the specified DataRelation, and DataRowVersion.
Public method GetChildRows(String, DataRowVersion) Gets the child rows of a DataRow using the specified RelationName of a DataRelation, and DataRowVersion.
Public method GetColumnError(DataColumn) Gets the error description of the specified DataColumn.
Public method GetColumnError(Int32) Gets the error description for the column specified by index.
Public method GetColumnError(String) Gets the error description for a column, specified by name.
Public method GetColumnsInError Gets an array of columns that have errors.
Public method GetHashCode Serves as the default hash function. (Inherited from Object.)
Public method GetParentRow(DataRelation) Gets the parent row of a DataRow using the specified DataRelation.
Public method GetParentRow(String) Gets the parent row of a DataRow using the specified RelationName of a DataRelation.
Public method GetParentRow(DataRelation, DataRowVersion) Gets the parent row of a DataRow using the specified DataRelation, and DataRowVersion.
Public method GetParentRow(String, DataRowVersion) Gets the parent row of a DataRow using the specified RelationName of a DataRelation, and DataRowVersion.
Public method GetParentRows(DataRelation) Gets the parent rows of a DataRow using the specified DataRelation.
Public method GetParentRows(String) Gets the parent rows of a DataRow using the specified RelationName of a DataRelation.
Public method GetParentRows(DataRelation, DataRowVersion) Gets the parent rows of a DataRow using the specified DataRelation, and DataRowVersion.
Public method GetParentRows(String, DataRowVersion) Gets the parent rows of a DataRow using the specified RelationName of a DataRelation, and DataRowVersion.
Public method GetType Gets the Type of the current instance. (Inherited from Object.)
Public method HasVersion Gets a value that indicates whether a specified version exists.
Public method IsNull(DataColumn) Gets a value that indicates whether the specified DataColumn contains a null value.
Public method IsNull(Int32) Gets a value that indicates whether the column at the specified index contains a null value.
Public method IsNull(String) Gets a value that indicates whether the named column contains a null value.
Public method IsNull(DataColumn, DataRowVersion) Gets a value that indicates whether the specified DataColumn and DataRowVersion contains a null value.
Protected method MemberwiseClone Creates a shallow copy of the current Object. (Inherited from Object.)
Public method RejectChanges Rejects all changes made to the row since AcceptChanges was last called.
Public method SetAdded Changes the Rowstate of a DataRow to Added.
Public method SetColumnError(DataColumn, String) Sets the error description for a column specified as a DataColumn.
Public method SetColumnError(Int32, String) Sets the error description for a column specified by index.
Public method SetColumnError(String, String) Sets the error description for a column specified by name.
Public method SetModified Changes the Rowstate of a DataRow to Modified.
Protected method SetNull Sets the value of the specified DataColumn to a null value.
Public method SetParentRow(DataRow) Sets the parent row of a DataRow with specified new parent DataRow.
Public method SetParentRow(DataRow, DataRelation) Sets the parent row of a DataRow with specified new parent DataRow and DataRelation.
Public method ToString Returns a string that represents the current object. (Inherited from Object.)
Top

  Name Description
Public Extension Method Field<T>(DataColumn) Overloaded. Provides strongly-typed access to each of the column values in the specified row. The Field method also supports nullable types. (Defined by DataRowExtensions.)
Public Extension Method Field<T>(Int32) Overloaded. Provides strongly-typed access to each of the column values in the specified row. The Field method also supports nullable types. (Defined by DataRowExtensions.)
Public Extension Method Field<T>(String) Overloaded. Provides strongly-typed access to each of the column values in the specified row. The Field method also supports nullable types. (Defined by DataRowExtensions.)
Public Extension Method Field<T>(DataColumn, DataRowVersion) Overloaded. Provides strongly-typed access to each of the column values in the specified row. The Field method also supports nullable types. (Defined by DataRowExtensions.)
Public Extension Method Field<T>(Int32, DataRowVersion) Overloaded. Provides strongly-typed access to each of the column values in the specified row. The Field method also supports nullable types. (Defined by DataRowExtensions.)
Public Extension Method Field<T>(String, DataRowVersion) Overloaded. Provides strongly-typed access to each of the column values in the specified row. The Field method also supports nullable types. (Defined by DataRowExtensions.)
Public Extension Method SetField<T>(DataColumn, T) Overloaded. Sets a new value for the specified column in the DataRow. The SetField method also supports nullable types. (Defined by DataRowExtensions.)
Public Extension Method SetField<T>(Int32, T) Overloaded. Sets a new value for the specified column in the DataRow the method is called on. The SetField method also supports nullable types. (Defined by DataRowExtensions.)
Public Extension Method SetField<T>(String, T) Overloaded. Sets a new value for the specified column in the DataRow. The SetField method also supports nullable types. (Defined by DataRowExtensions.)
Top
Was this page helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2014 Microsoft