Back to Devexpress

DataViewBase.HeaderPosition Property

wpf-devexpress-dot-xpf-dot-grid-dot-dataviewbase-9888d8ef.md

latest3.5 KB
Original Source

DataViewBase.HeaderPosition Property

Gets or sets the grid view’s header position. This is a dependency property.

Namespace : DevExpress.Xpf.Grid

Assembly : DevExpress.Xpf.Grid.v25.2.Core.dll

NuGet Package : DevExpress.Wpf.Grid.Core

Declaration

csharp
public HeaderPosition HeaderPosition { get; set; }
vb
Public Property HeaderPosition As HeaderPosition

Property Value

TypeDescription
HeaderPosition

One of the HeaderPosition enumeration values.

|

Available values:

NameDescription
Top

The header is displayed at the top of the GridControl.

| | CompactPanel |

The header is displayed to the left of the compact panel.

| | SearchPanel |

The header is displayed to the left of the search panel. If the search panel is hidden, the header is not displayed.

|

Remarks

Use the HeaderPosition property to specify the view’s header position.

When the HeaderPosition property is set to HeaderPosition.SearchPanel, the header is displayed only when the search panel is visible. Set the DataViewBase.ShowSearchPanelMode property to ShowSearchPanelMode.Always to make the search panel always visible.

When the HeaderPosition property is set to HeaderPosition.CompactPanel, the header is visible only when Compact Mode is enabled and activated.

The following code snippet (auto-collected from DevExpress Examples) contains a reference to the HeaderPosition 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.

wpf-scheduler-drop-data-from-grid-control-to-create-appointments/CS/DragDropFromGridExample/MainWindow.xaml#L59

xml
Header="Patients"
                   HeaderPosition="Top" />
</dxg:GridControl.View>

See Also

DataViewBase Class

DataViewBase Members

DevExpress.Xpf.Grid Namespace