Back to Devexpress

TcxPivotGridField.Properties Property

vcl-cxcustompivotgrid-dot-tcxpivotgridfield.md

latest13.7 KB
Original Source

TcxPivotGridField.Properties Property

Provides access to active editor settings.

Declaration

delphi
property Properties: TcxCustomEditProperties read; write;

Property Value

TypeDescription
TcxCustomEditProperties

Stores settings that correspond to the active editor type.

Cast the property value to the corresponding class of editor settings to access all public API members. Call the Properties.ClassType function to identify the actual class of editor settings.

Refer to the Remarks section for the full list of available in-place editor types.

|

Remarks

A pivot grid field can use any editor shipped with the ExpressEditors Library to display data in cells.

Use the PropertiesClass property to switch between available in-place editors if the RepositoryItem property is unspecified.

Available In-Place Editors

PropertiesClass ValueIn-Place EditorDescription
TdxBarCodePropertiesTdxBarCodeA barcode control without user input functionality.
TcxBlobEditPropertiesTcxBlobEditA Binary Large Object (BLOB) editor.
TcxButtonEditPropertiesTcxButtonEditA single-line text editor with embedded buttons.
TcxCalcEditPropertiesTcxCalcEditA single-line editor with a drop-down calculator window.
TcxCheckBoxPropertiesTcxCheckBoxA check box editor with support for three states.
TcxCheckComboBoxPropertiesTcxCheckComboBoxA combo box editor that can display items with check boxes.
TcxCheckGroupPropertiesTcxCheckGroupAn editor designed to display a set of check boxes.
TcxColorComboBoxPropertiesTcxColorComboBoxA color combo box editor.
TdxColorEditPropertiesTdxColorEditAn editor designed to select a color in a color gallery embedded into a drop-down window.
TcxComboBoxPropertiesTcxComboBoxA general-purpose combo box editor.
TcxCurrencyEditPropertiesTcxCurrencyEditA numeric editor for currency values.
TcxDateEditPropertiesTcxDateEditA date editor with a drop-down calendar.
TdxDateTimeWheelPickerPropertiesTdxDateTimeWheelPickerA date/time wheel picker editor.
TcxExtLookupComboBoxPropertiesTcxExtLookupComboBoxA lookup editor that displays a Data Grid View in a drop-down window.
TcxFontNameComboBoxPropertiesTcxFontNameComboBoxA combo box that allows users to switch between font typefaces.
TdxFormattedLabelPropertiesTdxFormattedLabelA formatted label editor without user input functionality.
TcxHyperlinkEditPropertiesTcxHyperLinkEditA hyperlink editor that can execute custom commands.
TcxImagePropertiesTcxImageAn editor designed to display images.
TcxImageComboBoxPropertiesTcxImageComboBoxA combo box whose items can display text and images.
TcxLabelPropertiesTcxLabelAn unformatted label editor without user input functionality.
TcxLookupComboBoxPropertiesTcxLookupComboBoxA lookup combo box populated with values from a data source.
TdxLookupSparklinePropertiesTdxLookupSparklineEditA lookup sparkline editor.
TcxMaskEditPropertiesTcxMaskEditA single-line text editor with support for input masks.
TcxMemoPropertiesTcxMemoA multi-line editor for plain text.
TcxMRUEditPropertiesTcxMRUEditA single-line text editor that displays a list of most recently used (MRU) items in a drop-down window.
TdxNumericWheelPickerPropertiesTdxNumericWheelPickerA numeric value wheel picker editor.
TdxOfficeSearchBoxPropertiesTdxOfficeSearchBoxA search box that suggests Ribbon or Toolbar UI elements based on user input.
TcxPopupEditPropertiesTcxPopupEditA text editor that can embed a control in a drop-down window.
TcxProgressBarPropertiesTcxProgressBarA progress bar.
TcxRadioGroupPropertiesTcxRadioGroupA container for radio buttons.
TdxRangeTrackBarPropertiesTdxRangeTrackBarA track bar editor with two sliders for value range selection.
TdxRatingControlPropertiesTdxRatingControlA rating control.
TcxRichEditPropertiesTcxRichEditA multi-line rich text editor.
TcxShellComboBoxPropertiesTcxShellComboBoxAn editor that combines a combo box and a Shell Tree View control.
TdxSparklinePropertiesTdxSparklineEditAn editor that visualizes data as lightweight charts without axes and labels.
TcxSpinEditPropertiesTcxSpinEditA general-purpose numeric spin editor.
TcxTextEditPropertiesTcxTextEditA simple single-line text editor.
TcxTimeEditPropertiesTcxTimeEditA spin editor for time values.
TdxToggleSwitchPropertiesTdxToggleSwitchA toggle switch editor.
TdxTokenEditPropertiesTdxTokenEditA token editor.
TcxTrackBarPropertiesTcxTrackBarA track bar editor with one slider.

Tip

To identify the actual class of active editor settings, call the Properties.ClassType function.

Design-Time Functionality

You can select any available editor in a drop-down list of a pivot grid field’s Properties node displayed in the Object Inspector:

Code Example: Display Cell Values as Progress Bars

The following code example assigns a progress bar editor to a pivot grid field that displays percentages:

delphi
// ...
uses
  cxProgressBar;
// ...
var
  AProperties: TcxProgressBarProperties;
begin
  pgfQuantityPercent.PropertiesClass := TcxProgressBarProperties;
  AProperties := pgfQuantityPercent.Properties as TcxProgressBarProperties;
  AProperties.BarStyle := cxbsAnimation;
  AProperties.BeginColor := clLime;
end;
cpp
// ...
#pragma link "cxProgressBar"
// ...
  TcxProgressBarProperties *AProperties;
  // ...
  pgfQuantityPercent->PropertiesClass = __classid(TcxProgressBarProperties);
  AProperties = dynamic_cast<TcxProgressBarProperties*>(pfgQuantityPercent->Properties);
  AProperties->BarStyle = cxbsAnimation;
  AProperties->BeginColor = clLime;

Important Limitations

  • If an editor has unbound and data-aware versions, you can use only its unbound version to display data in cells.
  • If the RepositoryItem property is specified, Properties, PropertiesClass, and PropertiesClassName property values are ignored.

Important

Do not change PropertiesClass, PropertiesClassName, and Properties property values in an OnGetProperties event handler. Otherwise, drawing errors and access violations may occur.

To change the active editor and modify its settings safely within these event handlers, use the RepositoryItem property and TcxEditRepositoryItem class descendants. Refer to the OnGetProperties event description for detailed information and a code example.

Default Editors

A pivot grid field uses the default editor to display data if Properties, PropertiesClass, and PropertiesClassName properties are unspecified. The pivot grid field uses one of the following editors as default depending on DataBinding.ValueType and DataBinding.ValueTypeClass property values:

ValueType[1]ValueTypeClass[1]Default Editor
BooleanTcxBooleanValueTypeTcxCheckBox
CurrencyTcxCurrencyValueTypeTcxCurrencyEdit
DateTimeTcxDateTimeValueTypeTcxDateEdit
FMTBcdTcxFMTBcdValueTypeTcxCurrencyEdit
SQLTimeStampTcxSQLTimeStampValueTypeTcxDateEdit
Any other valueAny other valueTcxTextEdit

Footnotes

  1. DataBinding.ValueType and DataBinding.ValueTypeClass property values define the default in-place editor for the pivot grid field regardless of the active data access mode.

See Also

TcxFilterItem.Properties Property

TcxCustomBarEditItem.Properties Property

TcxCustomGridTableItem.Properties Property

TcxCustomEditorRowProperties.EditProperties Property

TcxPivotGridField Class

TcxPivotGridField Members

cxCustomPivotGrid Unit