Back to Devexpress

DetailExpandButtonMode Enum

windowsforms-devexpress-dot-xtragrid-dot-views-dot-grid-3e42b3a7.md

latest2.3 KB
Original Source

DetailExpandButtonMode Enum

Lists the values that specify whether master-detail expand buttons are displayed grayed out when their associated details don’t contain any data.

Namespace : DevExpress.XtraGrid.Views.Grid

Assembly : DevExpress.XtraGrid.v25.2.dll

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

Declaration

csharp
public enum DetailExpandButtonMode
vb
Public Enum DetailExpandButtonMode

Members

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

|

The following properties accept/return DetailExpandButtonMode values:

Remarks

The values listed by this enumeration are used to set the GridOptionsDetail.SmartDetailExpandButtonMode property.

See Also

DevExpress.XtraGrid.Views.Grid Namespace