Back to Devexpress

GridOptionsDetail.EnableMasterViewMode Property

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

latest2.8 KB
Original Source

GridOptionsDetail.EnableMasterViewMode Property

Gets or sets a value specifying whether the View’s details can be displayed.

Namespace : DevExpress.XtraGrid.Views.Grid

Assembly : DevExpress.XtraGrid.v25.2.dll

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

Declaration

csharp
[DefaultValue(true)]
[XtraSerializableProperty]
public virtual bool EnableMasterViewMode { get; set; }
vb
<DefaultValue(True)>
<XtraSerializableProperty>
Public Overridable Property EnableMasterViewMode As Boolean

Property Value

TypeDefaultDescription
Booleantrue

true , to allow expanding master rows ; otherwise, false.

|

Property Paths

You can access this nested property as listed below:

Object TypePath to EnableMasterViewMode
GridView

.OptionsDetail .EnableMasterViewMode

|

Remarks

Initially, all master row within a View are collapsed. They can be expanded either by end-users or in code in order to make their detail Views visible. This functionality is not available when the EnableMasterViewMode property is set to false.

Please refer to the Master-Detail Relationships topic for details on how master rows can be expanded by end-users and in code.

Note

When pixel-based vertical row scrolling is enabled, the Master-Detail Mode is forcibly disabled. See GridOptionsBehavior.AllowPixelScrolling, to learn more.

Note

Master-detail data presentation is not supported in server mode.

See Also

Master-Detail Relationships

GridOptionsDetail Class

GridOptionsDetail Members

DevExpress.XtraGrid.Views.Grid Namespace