Ado| Object n Overloads public Overridable Function Add () as DataTable
n Overloads Public Overridable Sub Add (ByVal table as DataTable)
n Overloads Public Overridable Function Add (ByVal name as String) as DataTable
N Public Sub AddRange (ByVal tables () as DataTable)
Parameters
1. Table the DataTable object to add.
2. Name to give the name of the DataTable that you have created.
3. Tables an array of DataTable objects to add to the collection.
DataTableCollection all DataTable objects that contain a specific DataSet. To access the DataSet's datatablecollection, use the Tables property.
DataTableCollection uses methods such as ADD, clear, and Remove to manage items in a collection.
Use the Contains method to determine whether a specific table is in the collection (specified by index or name).
To browse from one table to another, use the ChildRelations or ParentRelations properties of the DataTable to access the collection of its DataRelation objects. You can also use the Relations property to browse for a DataTables parent/child relationship in a given DataSet collection.
Example
Private Sub addtable ()
Dim DSet as dataset= CType (DataGrid1.DataSource, DataSet)
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.