In this step you will bind the products data table to the TileControl and fill in the datasets for the products, suppliers, and categories.
Set the TileControl’s Data Properties
Setting these two properties binds the products data table in the dataSet11 to the TileControl.
Populating the TileControl
The TileControl is bound to the dataSet11, but is not automatically filled in. To fill the dataset, call the data adapter method like the following:
Visual Basic |
Copy Code
|
---|---|
categoriesDataAdapter.Fill(dataSet11) suppliersDataAdapter.Fill(dataSet11) productsDataAdapter.Fill(dataSet11) |
C# |
Copy Code
|
---|---|
categoriesDataAdapter.Fill(dataSet11); suppliersDataAdapter.Fill(dataSet11); productsDataAdapter.Fill(dataSet11); |