ASP.NET Pack Programmer's Guide
Using VisualStudio 2005

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

Create a DataSource

  1. 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.
  2. 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 for WebForms properties

  1. 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 for WebForms's DataSource property.

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

See Also

Using VisualStudio 2008