Synopsis
DataTable table
= DataRow.Table;
Gets the table that the row belongs to and has a schema for.
Example
The following example demonstrates how to retrieve the
DataTable
the row belongs to:
DataTable dt1 = new DataTable();
DataRow row = DataTable.NewRow();
// returns a reference to DataTable dt1
DataTable dt2 = row.Table;
Note
A row belongs to the DataTable
once it is added to
the DataRowCollection
. If the
DataRow
doesn’t belong to a
table, a null
reference is
returned.