Skip to main content
A newer version of this page is available. .

DetailDescriptorBase.ShowHeader Property

Gets or sets the detail header section’s visibility.

Namespace: DevExpress.Xpf.Grid

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

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

The following code snippet (auto-collected from DevExpress Examples) contains a reference to the ShowHeader property.

Note

The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.

See Also