wpf-devexpress-dot-xpf-dot-grid-dot-tableview-00b45b14.md
Gets or sets the how the compact panel is displayed when the GridControl dimensions are changed. This is a dependency property.
Namespace : DevExpress.Xpf.Grid
Assembly : DevExpress.Xpf.Grid.v25.2.dll
NuGet Package : DevExpress.Wpf.Grid.Core
public CompactPanelShowMode CompactPanelShowMode { get; set; }
Public Property CompactPanelShowMode As CompactPanelShowMode
| Type | Description |
|---|---|
| CompactPanelShowMode |
Any of the CompactPanelShowMode enumeration values that is the compact panel display mode.
|
Available values:
| Name | Description |
|---|---|
| CompactMode |
The compact panel is displayed when the GridControl is in compact mode.
| | Always |
The compact panel is displayed when the GridControl is in both compact and non-compact modes.
| | Never |
The compact panel is never displayed within the GridControl.
|
Use the CompactPanelShowMode property to control the availability of the compact panel when the GridControl is switched (or not) to compact mode.
The GridControl switches to compact mode when the following requirements are met:
You can set the CompactPanelShowMode property to any of the following values:
The following code snippet (auto-collected from DevExpress Examples) contains a reference to the CompactPanelShowMode 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-data-grid-bind-to-custom-service-with-restrictions/CS/MainWindow.xaml#L38
<dxg:GridControl.View>
<dxg:TableView CompactPanelShowMode="Always" CompactSortElementShowMode="Always"
ShowSearchPanelMode="Always" SearchStringToFilterCriteria="OnSearchStringToFilterCriteria" />
See Also