Back to Devexpress

ShowButtonModeEnum Enum

windowsforms-devexpress-dot-xtragrid-dot-views-dot-base-759e3158.md

latest2.6 KB
Original Source

ShowButtonModeEnum Enum

Lists values specifying the cells in which editor buttons are displayed

Namespace : DevExpress.XtraGrid.Views.Base

Assembly : DevExpress.XtraGrid.v25.2.dll

NuGet Packages : DevExpress.Win.Grid, DevExpress.Win.Navigation

Declaration

csharp
public enum ShowButtonModeEnum
vb
Public Enum ShowButtonModeEnum

Members

NameDescription
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.

|

The following properties accept/return ShowButtonModeEnum values:

Remarks

Values listed by this enumeration can be used to set the ColumnViewOptionsView.ShowButtonMode and GridColumn.ShowButtonMode properties. The first one identifies the View cells that should display their editor buttons. The latter can be used to override these settings for an individual column.

See Also

ColumnViewOptionsView.ShowButtonMode

GridColumn.ShowButtonMode

DevExpress.XtraGrid.Views.Base Namespace