The following example demonstrates how to obtain underlying data corresponding to a particular visual element using the DashboardViewer's API.
In this example, the DashboardItemClick event is handled to obtain underlying data and display this data in the grid.
In the event handler, the GetUnderlyingData method is called to obtain records from the dashboard's data source.