Table Property

DataView.Table Property

 

Gets or sets the source DataTable.

Namespace:   System.Data
Assembly:  System.Data (in System.Data.dll)

member Table : DataTable with get, set

Property Value

Type: System.Data.DataTable

A DataTable that provides the data for this view.

The DataTable also has a DefaultView property which returns the default DataView for the table. For example, if you want to create a custom view on the table, set the RowFilter on the DataView returned by the DefaultView.

You can only set the Table property if the current value is null.

The following example gets the DataTable of the current DataView.

No code example is currently available or this language may not be supported.

.NET Framework
Available since 1.1
Return to top
Show:
© 2016 Microsoft