Enum 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
Namespace: Syncfusion.Windows.Forms.Grid.Grouping
Assembly: Syncfusion.Grid.Grouping.Windows.dll
Syntax
public enum GridColumnsMaxLengthStrategy
Fields
Name | Description |
---|---|
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. |
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. |
None | Initial size for columns will be GridTableOptionsStyleInfo.DefaultColumnWidth |