Spread Windows Forms 8.0 Product Documentation > Developer's Guide > Managing Data Binding > Tutorial: Binding to a Corporate Database > Creating the Data Set |
Now that you have specified the database and the data to use from the database, you will create a data set to contain the data for your Spread control.
The new data set control is added to your form.
C# |
Copy Code
|
---|---|
DataSet ds; ds = dbDataSet; dbAdapt.Fill(ds); |
VB |
Copy Code
|
---|---|
Dim ds As DataSet ds = dbDataSet dbAdapt.Fill(ds) |
This fills the data set with the data from the database you specified, using the fields you specified when setting up the OleDbDataAdapter control.