Back to Devexpress

GridOptionsDetail.SmartDetailExpandButtonMode Property

windowsforms-devexpress-dot-xtragrid-dot-views-dot-grid-dot-gridoptionsdetail.md

latest3.4 KB
Original Source

GridOptionsDetail.SmartDetailExpandButtonMode Property

Gets or sets a value which specifies the manner in which master-detail expand buttons are painted.

Namespace : DevExpress.XtraGrid.Views.Grid

Assembly : DevExpress.XtraGrid.v25.2.dll

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

Declaration

csharp
[DefaultValue(DetailExpandButtonMode.Default)]
[XtraSerializableProperty]
public virtual DetailExpandButtonMode SmartDetailExpandButtonMode { get; set; }
vb
<DefaultValue(DetailExpandButtonMode.Default)>
<XtraSerializableProperty>
Public Overridable Property SmartDetailExpandButtonMode As DetailExpandButtonMode

Property Value

TypeDefaultDescription
DetailExpandButtonModeDefault

A DetailExpandButtonMode enumeration value which specifies whether master-detail expand buttons are displayed grayed out when their associated details don’t contain any data.

|

Available values:

NameDescription
Default

The same as the DetailExpandButtonMode.CheckDefaultDetail option.

| | AlwaysEnabled |

Master-detail expand buttons are always displayed in black.

| | CheckDefaultDetail |

Display master-detail expand buttons as grayed out if the default detail is empty.

The default detail is identified by the GridView.DefaultRelationIndex property

| | CheckAllDetails |

Display master-detail expand buttons as grayed out if all details in the data source corresponding to a master row are empty. All details in the data source are checked, not only the details displayed by the Grid Control (see GridControl.ShowOnlyPredefinedDetails).

|

Property Paths

You can access this nested property as listed below:

Object TypePath to SmartDetailExpandButtonMode
GridView

.OptionsDetail .SmartDetailExpandButtonMode

|

See Also

OptionsDetail

GridOptionsDetail Class

GridOptionsDetail Members

DevExpress.XtraGrid.Views.Grid Namespace