Hello
TPivotDataSourceEh component for loading and storing of consolidated data for TPivotGridEh.
Before working with the TPivotGridEh component to display data, you need to set up and fill in the TPivotDataSourceEh component.
Put TPivotDataSourceEh on a Form and assign TPivotDataSourceEh.DataSet property by a DataSet from which the data will be taken.
At run-time call methods to
Code:
//create PivotDataSource structure from DataSet
PivotDataSourceEh1.PivotFields.RebuildPivotFields;
//to fill PivotDataSourceEh from DataSet
PivotDataSourceEh1.CreateAndFillSourceTable;
See also
https://www.ehlib.com/online-help/index.htmlSection: Componenst for consolidated data analysis
and Demo project
<EhLib Archive>\Demos\PivotGridEh.SimpleDemo