Back to Devexpress

TreeList.ShowButtonMode Property

windowsforms-devexpress-dot-xtratreelist-dot-treelist-4e3030db.md

latest2.8 KB
Original Source

TreeList.ShowButtonMode Property

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

Namespace : DevExpress.XtraTreeList

Assembly : DevExpress.XtraTreeList.v25.2.dll

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

Declaration

csharp
[DefaultValue(ShowButtonModeEnum.ShowForFocusedCell)]
[XtraSerializableProperty]
public ShowButtonModeEnum ShowButtonMode { get; set; }
vb
<DefaultValue(ShowButtonModeEnum.ShowForFocusedCell)>
<XtraSerializableProperty>
Public Property ShowButtonMode As ShowButtonModeEnum

Property Value

TypeDefaultDescription
ShowButtonModeEnumShowForFocusedCell

A value that specifies which column cells display editor buttons.

|

Available values:

NameDescription
Default

Specifies the default behavior for all columns - buttons are displayed only for the focused cell. If a column’s TreeListColumn.ShowButtonMode property is specified, the behavior specified by the Tree List is overridden.

| | ShowAlways |

Buttons are always displayed.

| | ShowForFocusedRow |

Buttons are displayed for all cell editors in the focused row.

| | ShowForFocusedCell |

Buttons are displayed only for the focused TreeList cell.

| | ShowOnlyInEditor |

Buttons are displayed only when a cell editor is active.

|

Remarks

The TreeListColumn.ShowButtonMode property allows you to override the TreeList.ShowButtonMode setting for individual columns.

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

See Also

ShowButtonMode

TextEditStyle

TreeList Class

TreeList Members

DevExpress.XtraTreeList Namespace