CustomBestFitEventArgs Class
Provides data for the TableView.CustomBestFit event.
Namespace: DevExpress.Xpf.Grid
Assembly: DevExpress.Xpf.Grid.v17.2.dll
Declaration
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.
Related GitHub Examples
The following code snippet (auto-collected from DevExpress Examples) contains a reference to the CustomBestFitEventArgs class.
Note
The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.