Skip to main content

GridCommands.BestFitColumn Property

Resizes the column to the minimum width required to display the column’s contents completely.

Namespace: DevExpress.Xpf.Grid

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

NuGet Package: DevExpress.Wpf.Grid.Core

Declaration

public static RoutedCommand BestFitColumn { get; }

Property Value

Type Description
RoutedCommand

A RoutedCommand object that defines a command implementing the ICommand, and is routed through the element tree.

Remarks

<Button Command="dxg:GridCommands.BestFitColumn"
        CommandTarget="{Binding Path=View, ElementName=grid}">Best Fit</Button>

Corresponding Method: TableView.BestFitColumn.

See Also