The following example demonstrates how to customize controls used to visualize data within dashboard items at runtime using DashboardViewer's API.
In this example, the following options are changed:
- The font of data rows' text is changed in the underlying grid control in the DashboardItemControlUpdated event handler.
- The background color of the chart's pane is changed in the DashboardItemControlUpdated event handler.
- Values of data cells in the underlying pivot grid control are customized using the CustomCellValue event. Subscription and unsubscription to/from the CustomCellValue event are performed in the DashboardItemControlCreated and DashboardItemBeforeControlDisposed event handlers respectively.
↧
How to access an API of underlying controls in the WinForms Viewer
↧