TableView.CompactPanelShowMode Property
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.v21.2.dll
NuGet Package: DevExpress.Wpf.Grid.Core
Declaration
Property Value
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. |
Remarks
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:
- the GridControl width is less then the value defined by TableView.SwitchToCompactModeWidth property;
- the TableView.DataRowCompactTemplate is defined.
You can set the CompactPanelShowMode property to any of the following values:
- CompactPanelShowMode.Always - The compact panel is displayed when the GridControl is in both compact and non-compact modes.
- CompactPanelShowMode.CompactMode - The compact panel is displayed when the GridControl is in compact mode.
- CompactPanelShowMode.Never - The compact panel is never displayed within the GridControl.