Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

DetailDescriptorBase.ShowHeader Property

Gets or sets the detail header section’s visibility.

Namespace: DevExpress.Xpf.Grid

Assembly: DevExpress.Xpf.Grid.v24.2.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