Back to Devexpress

CustomBestFitEventArgs Class

wpf-devexpress-dot-xpf-dot-grid-05b863b5.md

latest2.2 KB
Original Source

CustomBestFitEventArgs Class

Provides data for the TableView.CustomBestFit event.

Namespace : DevExpress.Xpf.Grid

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

NuGet Package : DevExpress.Wpf.Grid.Core

Declaration

csharp
public class CustomBestFitEventArgs :
    CustomBestFitEventArgsBase
vb
Public Class CustomBestFitEventArgs
    Inherits CustomBestFitEventArgsBase

CustomBestFitEventArgs is the data class for the following events:

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.

Inheritance

Object EventArgs RoutedEventArgs CustomBestFitEventArgsBase CustomBestFitEventArgs

See Also

CustomBestFitEventArgs Members

DevExpress.Xpf.Grid Namespace