Spread Windows Forms 6.0 Product Documentation
Binding Spread to the Database
Support Options
Spread Windows Forms 6.0 Product Documentation > Developer's Guide > Managing Data Binding > Tutorial: Binding to a Corporate Database > Binding Spread to the Database

Glossary Item Box

Your data set is ready, now you need to provide code to bind the Spread control to the data set.

  1. Press F4 to display the Properties window for the Spread control, if it is not already displayed.
  2. In the Properties window, set the DataSource property to the name of your data set, dbDataSet.

    Notice that the column headers in the Spread control change to be the field names from the Products table in your database.

  3. Save your project.
  4. Run your project and you should see a form that looks similar to the following:

    Bound Spread Component

  5. If your form does not look similar to this form, adjust the size of your Spread control, and re-check the steps you have performed so far.
  6. Stop the project.

Return to the list of steps for Tutorial: Binding to a Corporate Database.

© 2002-2012 ComponentOne, a division of GrapeCity. All Rights Reserved.