A newer version of this page is available. Switch to the current version.

BaseView.DetailHeight Property

Gets or sets the height of a View when it serves as a detail View.

Namespace: DevExpress.XtraGrid.Views.Base

Assembly: DevExpress.XtraGrid.v18.2.dll


public virtual int DetailHeight { get; set; }

Property Value

Type Default Description


An integer value specifying the View height in pixels.


The DetailHeight property of pattern Views specifies the height its clones will have when expanding corresponding master rows. When changing the DetailHeight property of a clone view, this clone’s height is changed.

The following applies to Layout Views (LayoutView objects), when they are displayed as details.

A detail auto-height mode is enabled by default for detail Layout Views. In this mode, the value specified by the DetailHeight property is interpreted as the maximum detail height. The detail area’s height is shrunk to vertically fit displayed cards (you can specify the card layout and the number of card rows via the LayoutViewOptionsView.ViewMode and LayoutViewOptionsMultiRecordMode.MaxCardRows options).

The detail auto height feature is not in effect if card stretching is enabled via the StretchCardToViewHeight property (see LayoutViewOptionsSingleRecordMode.StretchCardToViewHeight and LayoutViewOptionsMultiRecordMode.StretchCardToViewHeight). In this instance, a detail’s height is specified by the DetailHeight property.

If you need a detail height to be fixed and equal to a specific value, disable the auto height feature via the LayoutView.DetailAutoHeight property and specify the required height via the DetailHeight property.

See Also