GridCommands.BestFitColumn Property
In This Article
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 |
---|---|
Routed |
A Routed |
#Remarks
<Button Command="dxg:GridCommands.BestFitColumn"
CommandTarget="{Binding Path=View, ElementName=grid}">Best Fit</Button>
Corresponding Method: TableView.BestFitColumn.
See Also