Skip to main content
A newer version of this page is available. .

ColumnViewOptionsView.ShowButtonMode Property

Gets or sets a value that specifies which column cells display editor buttons.

Namespace: DevExpress.XtraGrid.Views.Base

Assembly: DevExpress.XtraGrid.v20.2.dll

NuGet Package: DevExpress.Win.Grid

Declaration

[DefaultValue(ShowButtonModeEnum.Default)]
[DXCategory("Appearance")]
[XtraSerializableProperty]
public ShowButtonModeEnum ShowButtonMode { get; set; }

Property Value

Type Default Description
ShowButtonModeEnum **Default**

A value that specifies which column cells display editor buttons.

Available values:

Name Description
Default

If a column’s GridColumn.ShowButtonMode property is set to this value, the column uses the View’s settings. Assigning this value to the View’s ColumnViewOptionsView.ShowButtonMode property is equivalent to assigning the ShowForFocusedCell value.

ShowAlways

Editor buttons are displayed for all cells within the column/view.

ShowForFocusedRow

Buttons are displayed for cells that reside within the focused row.

ShowForFocusedCell

Editor buttons are displayed for the focused cell only.

ShowOnlyInEditor

Buttons are displayed only when a cell editor is active.

Property Paths

You can access this nested property as listed below:

Object Type Path to ShowButtonMode
AdvBandedGridView
.OptionsView .ShowButtonMode
BandedGridView
.OptionsView .ShowButtonMode
ColumnView
.OptionsView .ShowButtonMode
CardView
.OptionsView .ShowButtonMode
GridView
.OptionsView .ShowButtonMode
LayoutView
.OptionsView .ShowButtonMode
TileView
.OptionsView .ShowButtonMode
WinExplorerView
.OptionsView .ShowButtonMode

Remarks

Use the GridColumn.ShowButtonMode property to override the OptionsView.ShowButtonMode setting for individual columns.

The OptionsView.ShowButtonMode and GridColumn.ShowButtonMode properties are only in effect for column editors that have the GridColumn.ColumnEdit.TextEditStyle option set to Standard.

The following code snippet (auto-collected from DevExpress Examples) contains a reference to the ShowButtonMode property.

Note

The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.

See Also