The following example demonstrates how to supply a dashboard with data provided as a collection of records.
In this example, an XML file provides data about car models and corresponding prices. The data source is created for the 'Cars' data table and added to the Dashboard.DataSources collection via the Dashboard.AddDataSource method on the first load.
To update the displayed data, the DashboardViewer.ReloadData method is called. This raises the DashboardViewer.DataLoading event and allows supplying the dashboard with updated data.