| |||||||||||||||||
DataTable.Rows PropertySystem.Data Namespace DataTable Class Returns the collection of rows that belong to this table. Syntax
Property Value
The property is read only with no default value. RemarksTo create a new DataRow, you must use the NewRow method to return a new object. Such an object is automatically configured with according to the schema defined for the DataTable through its collection of DataColumn objects. After creating a new row and setting the values for each column in the row, add the row to the DataRowCollection using the Add method. Each 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 AcceptChanges method.
ExampleThe following examples demonstrate using the Rows property to print the values of each column in each row of a table.
See AlsoDataTable Members DataRowCollection DataRow |
| ||||||||||||||||
Check out related books at Amazon
© 2000-2008 Rey Nuñez All rights reserved.
If you have any question, comment or suggestion
about this site, please send us a note
You can help support aspxtreme