Class GridColumnsMaxLengthStrategy
Defines the constants that specify the strategy for resizing columns to optimal width. See also GridColumnDescriptor.MaxLength, GridSummaryColumnDescriptor.MaxLength, GridTableOptionsStyleInfo.ColumnsMaxLengthStrategy and GridTableOptionsStyleInfo.ColumnsMaxLengthFirstNRecords
Inheritance
Namespace: Syncfusion.Windows.Forms.Grid.Grouping
Assembly: Syncfusion.Grid.Grouping.Windows.dll
Syntax
public sealed class GridColumnsMaxLengthStrategy : Enum
Fields
FirstNRecords
The engine will loop through the first n rows at initialization time and save the width in the table. The number of rows is defined by GridTableOptionsStyleInfo.ColumnsMaxLengthFirstNRecords. If a GridColumnDescriptor.MaxLength was specified by the user, the GridColumnDescriptor.MaxLength will be used instead.
Declaration
public const GridColumnsMaxLengthStrategy FirstNRecords
Field Value
| Type |
|---|
| GridColumnsMaxLengthStrategy |
MaxLengthSummary
A summary is created for each column to keep track of the maximum length for the column. Best approach for smaller data sources. If a GridColumnDescriptor.MaxLength was specified by the user, the GridColumnDescriptor.MaxLength will be used instead.
Declaration
public const GridColumnsMaxLengthStrategy MaxLengthSummary
Field Value
| Type |
|---|
| GridColumnsMaxLengthStrategy |
None
Initial size for columns will be GridTableOptionsStyleInfo.DefaultColumnWidth
Declaration
public const GridColumnsMaxLengthStrategy None
Field Value
| Type |
|---|
| GridColumnsMaxLengthStrategy |