May 2002
Beginner
408 pages
9h 10m
English
In the next few sections, you'll see how to create a new DataSet and new DataTable. You'll also see how to manually create the DataTable schema using DataColumns. Finally, you will add some data to the DataSet using the DataRow object.
The first step to working with a DataSet is to create a new instance of a DataSet object. You can do this by using the following code in Visual Basic .NET:
Dim dsCompany as New DataSet()
or like this using C#:
DataSet dsCompany = new DataSet();
When you have a DataSet object, the next step is to add a DataTable. The DataTable contains the columns and rows that make up the data you'll add later. To add a new table to the DataSet, you use ...
Read now
Unlock full access