GridCommands.BestFitColumns Property
In This Article
Adjusts the width of columns so that columns fit their contents in an optimal way.
Namespace: DevExpress.Xpf.Grid
Assembly: DevExpress.Xpf.Grid.v24.2.dll
NuGet Package: DevExpress.Wpf.Grid.Core
#Declaration
public static RoutedCommand BestFitColumns { get; }
#Property Value
Type | Description |
---|---|
Routed |
A Routed |
#Remarks
<Button Command="dxg:GridCommands.BestFitColumns"
CommandTarget="{Binding Path=View, ElementName=grid}">Best Fit (all columns)</Button>
Corresponding Method: TableView.BestFitColumns.
See Also