Initializes a new instance of the DataView class.
Initializes a new instance of the DataView class.
[Visual Basic] Overloads Public Sub New()
[C#] public DataView();
[C++] public: DataView();
[JScript] public function DataView();
Initializes a new instance of the DataView class with the specified DataTable.
[Visual Basic] Overloads Public Sub New(DataTable)
[C#] public DataView(DataTable);
[C++] public: DataView(DataTable*);
[JScript] public function DataView(DataTable);
The following example creates a new DataView with a given DataTable.
Note This example shows how to use one of the overloaded version of the DataView constructor. For other examples that may be available, see the individual overload topics.
[Visual Basic]
Private Sub MakeDataView() Dim dv As DataView dv = New DataView(DataSet1.Tables("Suppliers") ' Bind a ComboBox control to the DataView. Combo1.DataSource = dv Combo1.DisplayMember = "Suppliers.CompanyName" End Sub