Back to Devexpress

GridCommands.BestFitColumn Property

wpf-devexpress-dot-xpf-dot-grid-dot-gridcommands-07ee7902.md

latest1.6 KB
Original Source

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.v25.2.dll

NuGet Package : DevExpress.Wpf.Grid.Core

Declaration

csharp
public static RoutedCommand BestFitColumn { get; }
vb
Public Shared ReadOnly Property BestFitColumn As RoutedCommand

Property Value

TypeDescription
RoutedCommand

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

|

Remarks

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

Corresponding Method: TableView.BestFitColumn.

See Also

GridCommands Class

GridCommands Members

DevExpress.Xpf.Grid Namespace