Synopsis
DataTable table
= DataColumn.Table;
Gets the DataTable
to which the
DataColumn
belongs.
Example
The following example shows how to retrieve a reference to the
DataTable
object the DataColumn
belongs to:
DataColumn col = new DataColumn();
// ... code to define the DataColumn col add it to the DataTable
DataTable dt = col.Table;
Note
This property returns a null
reference if the
DataColumn
has not been assigned to a
DataTable
.