Gets the TableSetting in the collection associated with the specified DataTable.
[C#] In C#, this member is the indexer for the TableSettingsCollection class.
[Visual Basic] Overloads Overridable Public Default ReadOnly Property Item( _ ByVal table As DataTable _ ) As TableSetting [C#] public TableSetting this[ DataTable table ] {virtual get;} [C++] public: __property virtual TableSetting* get_Item( DataTable* table ); [JScript] returnValue = TableSettingsCollectionObject.Item(table); -or- returnValue = TableSettingsCollectionObject(table);
[JScript] In JScript, you can use the default indexed properties defined by a type, but you cannot explicitly define your own. However, specifying the expando attribute on a class automatically provides a default indexed Item property whose type is Object and whose index type is String.
The following example gets the TableSetting associated with the given DataTable.
[Visual Basic]
Private Sub GetTableSetting(dsv As DataSetView) Dim t As DataTable t = DataSet1.Tables("Customers") ' Get the TableSetting from a given DataSetView Dim ts As TableSetting ts = dsv.TableSettings(t) Debug.Print ts.RowFilter End Sub
TableSettingsCollection Class | TableSettingsCollection Members | System.Data Namespace | TableSettingsCollection.Item Overload List