Skip to main content

DetailDescriptorBase.ShowHeader Property

Gets or sets the detail header section’s visibility.

Namespace: DevExpress.Xpf.Grid

Assembly: DevExpress.Xpf.Grid.v24.1.Core.dll

NuGet Package: DevExpress.Wpf.Grid.Core

Declaration

public bool ShowHeader { get; set; }

Property Value

Type Description
Boolean

true to display the detail’s header section; otherwise, false.

Remarks

Whether using a ContentDetailDescriptor or a DataControlDetailDescriptor, you can enable the header section using the ShowHeader property. Depending on the detail descriptor type, you can specify the section’s content using different properties:

Detail Section Type Properties Specifying Header Content
ContentDetailDescriptor ContentDetailDescriptor.HeaderContent and, optionally, DetailDescriptorBase.HeaderContentTemplate.
DataControlDetailDescriptor DataViewBase.DetailHeaderContent and, optionally, DetailDescriptorBase.HeaderContentTemplate.

The following image shows detail section headers when specifying textual content without setting custom templates.

Grid-Master-Detail-Header-Content

See Also