Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

CustomBestFitEventArgs Class

Provides data for the TableView.CustomBestFit event.

Namespace: DevExpress.Xpf.Grid

Assembly: DevExpress.Xpf.Grid.v24.2.dll

NuGet Package: DevExpress.Wpf.Grid.Core

#Declaration

public class CustomBestFitEventArgs :
    CustomBestFitEventArgsBase

#Remarks

The CustomBestFitEventArgs class introduces the CustomBestFitEventArgs.Column property that specifies the grid column whose width should be adjusted, and the CustomBestFitEventArgsBase.BestFitMode property that specifies the mode that defines how to adjust the column width. Also, in case you want to define a custom list of data rows for calculating a column’s width, you can assign them to the CustomBestFitEventArgsBase.BestFitRows property.

An instance of the CustomBestFitEventArgs class with appropriate settings is automatically created and passed to the corresponding event’s handler.

See Also