MindFusion.Charting Programmer's Guide

Using VisualStudio 2005

Practical Tips: How To Connect MindFusion.Charting's Database Properties to a Database in VisualStudio 2005?

Create a DataSource

  • Drag AccessDataSource or SqlDataSource icon from the Toolbox pane.
    If any of them is missing, you can add it by clicking on Choose items from the context menu of the toolbox.
  • Click Configure Data Source, which appears below your icon at design time.
    Follow the  steps of the wizard to connect to the database and choose the required database fields.

Bind MindFusion.Charting properties

  • Set the DataSourceID property to the newly created DataSource. You can set it in DataSourceID in the dialog box that appears before the control is dropped at the form or use the property grid.

Note

At design time, only the DataSourceID is available. At run time, you can create the DataSource object manually and assign it to the MindFusion.Charting's DataSource property.

  • Set the DataMember property to the correct database view/table.
  • Set the data-bound MindFusion.Charting properties to the available database fields shown in the property browser.

See Also

Using VisualStudio 2008