GridCommands.BestFitColumns Property

Adjusts the width of columns so that columns fit their contents in an optimal way.

Namespace: DevExpress.Xpf.Grid

Assembly: DevExpress.Xpf.Grid.v20.1.dll

Declaration

public static RoutedCommand BestFitColumns { get; }
Public Shared ReadOnly Property BestFitColumns As RoutedCommand

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.BestFitColumns"
        CommandTarget="{Binding Path=View, ElementName=grid}">Best Fit (all columns)</Button>

Corresponding Method: TableView.BestFitColumns.

See Also