The ranges and values of the Chart control are extracted from the values of the gridgroupingcontrol. In the sample, the minimum and maximum values are taken from the values in the group. When the groups or records change, the GroupedColumn_Changed and RecordValueChanged events are handled. An additional timer is added to delay the update slightly so that the summary value is available. The drawing of the Chart is done by the SetChartData method.
In this method, the properties of the Chart are set. Based on the Summary values of the GridGroupingControl, the Chart is drawn.
The following screenshot displays the summary value in the Chart.
|Article ID:||Published Date:||Last Revised Date:||Platform:||Control:|