Windows apps
Collapse the table of content
Expand the table of content
Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

DataView::Table Property

 

Gets or sets the source DataTable.

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

public:
property DataTable^ Table {
	DataTable^ get();
	void set(DataTable^ value);
}

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:
© 2017 Microsoft