NGWS SDK Documentation  

This is preliminary documentation and subject to change.
To comment on this topic, please send us email at ngwssdk@microsoft.com. Thanks!

DataView Constructor

Initializes a new instance of the DataView class.

Overload List

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);

Example [Visual Basic]

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

See Also

DataView Class | DataView Members | System.Data Namespace