PivotGridFieldOptionsEx.ShowButtonMode Property
Gets or sets which cells corresponding to the current field display editor buttons.
Namespace: DevExpress.XtraPivotGrid
Assembly: DevExpress.XtraPivotGrid.v24.1.dll
NuGet Package: DevExpress.Win.PivotGrid
Declaration
[DefaultValue(PivotShowButtonModeEnum.Default)]
[XtraSerializableProperty]
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 |
|
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.