System.Data.DataTable.Rows Property

Gets the collection of rows that belong to this table.

Syntax

[System.ComponentModel.Browsable(false)]
public DataRowCollection Rows { get; }

Value

Documentation for this section has not yet been entered.

Remarks

To create a new System.Data.DataRow, you must use the DataTable.NewRow method to return a new object. Such an object is automatically configured according to the schema defined for the System.Data.DataTable through its collection of System.Data.DataColumn objects. After creating a new row and setting the values for each column in the row, add the row to the System.Data.DataRowCollection using the Add method.

Each System.Data.DataRow in the collection represents a row of data in the table. To commit a change to the value of a column in the row, you must invoke the DataTable.AcceptChanges method.

Requirements

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