Back to Devexpress

TableView.SwitchToCompactModeWidth Property

wpf-devexpress-dot-xpf-dot-grid-dot-tableview-a5ff5433.md

latest2.0 KB
Original Source

TableView.SwitchToCompactModeWidth Property

Gets or sets a maximum GridControl width when it renders its rows in compact mode. This is a dependency property.

Namespace : DevExpress.Xpf.Grid

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

NuGet Package : DevExpress.Wpf.Grid.Core

Declaration

csharp
public double SwitchToCompactModeWidth { get; set; }
vb
Public Property SwitchToCompactModeWidth As Double

Property Value

TypeDescription
Double

A maximum GridControl width when it renders its rows in compact mode.

|

Remarks

GridControl can automatically re-draw its data rows with a custom template when its width decreases. This functionality allows you to build adaptive layouts where the data grid stays user-friendly even in compact mode. When the GridControl width is less than a value set by the SwitchToCompactModeWidth property, it renders its rows using a custom template specified using the TableView.DataRowCompactTemplate property. In compact mode, GridControl displays a compact panel that provides a set of predefined filter items, and sorting and grouping means.

See Also

Compact Mode

TableView Class

TableView Members

DevExpress.Xpf.Grid Namespace