Skip to main content

TcxPivotGridField.OnGetStoredPropertyValue Event

Enables you to provide values for field properties to be saved to external data stores.

Declaration

property OnGetStoredPropertyValue: TcxGetStoredPropertyValueEvent read; write;

Remarks

This event is fired for each property (including default properties) within the list specified in the field’s OnGetStoredProperties event handler. To restore field properties, handle the OnSetStoredPropertyValue event.

The Sender parameter specifies the current field.

The AName parameter identifies the property name.

Pass the property value as the AValue parameter.

The following code represents an OnGetStoredPropertyValue event handler demonstrating how to save the values of a field’s DisplayFormat property previously specified for storing within the field’s OnGetStoredProperties event handler.

procedure <Form>.<Field>GetStoredPropertyValue(Sender: TObject; const AName: String; var AValue: Variant);
begin
  if Sender is TcxPivotGridField then
  begin
    if AName = 'DisplayFormat' then
    begin
      AValue := TcxPivotGridField(Sender).DisplayFormat;
      Exit;
    end;
  end;
end;
See Also