| |||||
DataSet.DefaultViewManager PropertySystem.Data Namespace DataSet Class Returns a custom view of the data contained by the DataSet that allows filtering, searching, and navigating using a custom DataViewManager. Syntax
Property Value
The property is read only with no default value. RemarksThe DataViewManager returned by the DefaultViewManager property allows you to create custom settings for each DataTable in the DataSet. When you add DataTable objects to the DataTableCollection, each table is automatically configured to display rows according to the specified property settings of the DataView, including sort order, filtering, and DataViewRowState. ExampleThe following example gets the default DataViewManager for a DataSet, and adds a DataTable to the DataTableCollection.
Private Sub GetDefaultDataViewManager ( )
Dim myDataView As DataViewManager
' get a DataSet object's DefaultViewManager.
myDataView = myDataSet.DefaultViewManager
' add a DataTable to the DataTableCollection.
Dim myDataTable As DataTable
myDataTable = New DataTable ( "MyTableName" )
myDataView.DataSet.Tables.Add ( myDataTable )
End Sub
See AlsoDataSet Members DataTable DataTableCollection DataViewRowState |
| ||||
Check out related books at Amazon
© 2000-2008 Rey Nuñez All rights reserved.
If you have any question, comment or suggestion
about this site, please send us a note
You can help support aspxtreme