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




Previous page Back to top Next page

Check out related books at Amazon

© 2025 Reynald Nuñez and asp.net.ph. All rights reserved.

If you have any question, comment or suggestion
about this site, please send us a note