The following example demonstrates how to supply a dashboard with data provided as a collection of records. The DataLoading event will be used for this purpose.
In this example, 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. Then, the DataLoading event is handled to supply the dashboard with data.