alexa
menu

WinForms

  • Code Examples
  • Upgrade Guide
  • User Guide
  • Demos
  • Support
  • Forums
  • Download

    Show / Hide Table of Contents

    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
    System.Object
    GridColumnsMaxLengthStrategy
    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
    Back to top Generated by DocFX
    Copyright © 2001 - 2026 Syncfusion Inc. All Rights Reserved