PivotGridFieldOptionsEx.ShowButtonMode Property

Gets or sets which cells corresponding to the current field display editor buttons.

Namespace: DevExpress.XtraPivotGrid

Assembly: DevExpress.XtraPivotGrid.v21.1.dll

Declaration

[XtraSerializableProperty]
[DefaultValue(PivotShowButtonModeEnum.Default)]
public virtual PivotShowButtonModeEnum ShowButtonMode { get; set; }

Property Value

Type Default Description
PivotShowButtonModeEnum

Default

A PivotShowButtonModeEnum value that specifies the current display mode for cell buttons.

Available values:

Name Description
Default

This option is equivalent to the ShowOnlyInEditor option.

ShowAlways

Editor buttons are displayed for all cells.

ShowForFocusedCell

Editor buttons are only displayed for the focused cell.

ShowOnlyInEditor

Editor buttons are only displayed when a cell editor is active.

Property Paths

You can access this nested property as listed below:

Object Type Path to ShowButtonMode
PivotGridField
.Options.ShowButtonMode

Remarks

You can assign editors to cells that correspond to a data field via the PivotGridField.FieldEdit property and/or the PivotGridControl.CustomCellEdit and PivotGridControl.CustomCellEditForEditing events. Using this approach, you can assign editors that embed buttons. The ShowButtonMode property specifies when editor buttons for the current field’s cells must be displayed.

To specify the button show mode for all data fields, use the PivotGridOptionsView.ShowButtonMode property.

See Also