Hello,
How can I best fit all columns? Currently, my users have to right-click a column heading and select Best Fit (all columns) . I thought the below xaml would solve the issue, but it doesn't apply best fit at run-time. Also, i noticed that after the data is refreshed the best fit is lost; do i need to set best fit programmatically after best fit and if so could you please provide an example? If needed see attached screen shot of what I'd like to do.
<dxg:GridControl x:Name="dgTest" AutoGenerateColumns="AddNew" EnableSmartColumnsGeneration="True" Grid.Row="2" SelectionMode="Cell" OptimizeSummaryCalculation="True" ClipboardCopyMode="IncludeHeader"> <dxmvvm:Interaction.Behaviors> <behaviors:DynamicConditionBehavior/> </dxmvvm:Interaction.Behaviors> <dxg:GridControl.View> <dxg:TableView x:Name="view" AllowPerPixelScrolling="True" ShowTotalSummary="True" AllowEditing="False" ShowGroupPanel="False" BestFitMode="AllRows" />