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 (DataTable)

Initializes a new instance of the DataView class with the specified DataTable.

[Visual Basic]
Overloads Public Sub New( _
   ByVal table As DataTable _
)
[C#]
public DataView(
   DataTable table
);
[C++]
public: DataView(
   DataTable* table
);
[JScript]
public function DataView(
   table : DataTable
);

Parameters

table
[To be supplied.]

Example [Visual Basic]

The following example creates a new DataView with a given DataTable.

[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 | DataView Constructor Overload List