asp.net.ph

DataTableCollection.Item Property

System.Data Namespace   DataTableCollection Class


Returns a specified table from the collection.

Overload List

1. Returns the DataTable with the specified name.

2. Returns the DataTable at the specified index.


Example

The following example retrieves a single table by name from a DataTableCollection.

NOTE: This example uses one of the overloaded versions of Item. For other examples that may be available, see the individual overload topics.

private void GetTableByName ( DataSet ds ) {
   // get a specific table by name.
   DataTable tbl = ds.Tables [ "Suppliers" ];
   Response.Write ( tbl.TableName );
}
  C# VB

See Also

DataTableCollection Members Skip Navigation Links




Home
Suggested Reading


Previous page Back to top Next page

© 2000-2010 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 asp.net.ph