Spread Windows Forms 8.0 Product Documentation
Binding Spread to the Database

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.

 

 


Copyright © GrapeCity, inc. All rights reserved.

Support Options | Documentation Feedback