Quote:
I don't see the exact code, but you probably mean TCollectionItem.DisplayName
Code:
PivotDataSourceEh1.ValueFieldDefs[0].DisplayName := 'Test';
The TCollectionItem.DisplayName property is not a property for changing the display value for TPivotFieldEh.
To change the TPivotFieldEh in the PivotDataSourceEh1.ValueFieldDefs collection, you need to use the following code.
Code:
PivotDataSourceEh1.ValueFieldDefs[0].PivotField.DisplayName := 'Test';
TCollectionItem.DisplayName is a low level property for displaying the collection item name at Design-Time.
_________________
Best regards
EhLib Support Team