alexa
menu

WinForms

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

    Show / Hide Table of Contents

    Class GridResizeToFitOptions

    Defines the options for a ResizeToFit(GridRangeInfo) method call.

    The options can be combined.

    Inheritance
    System.Object
    GridResizeToFitOptions
    Namespace: Syncfusion.Windows.Forms.Grid
    Assembly: Syncfusion.Grid.Windows.dll
    Syntax
    public sealed class GridResizeToFitOptions : Enum

    Fields

    IncludeCellsWithinCoveredRange

    ResizeCoveredCells mode only resizes the last row or column of a covered range. Use this option to also resize the columns or rows before the last one.

    Declaration
    public const GridResizeToFitOptions IncludeCellsWithinCoveredRange
    Field Value
    Type
    GridResizeToFitOptions

    IncludeHeaders

    Include also row or column header for resizing the cells.

    Declaration
    public const GridResizeToFitOptions IncludeHeaders
    Field Value
    Type
    GridResizeToFitOptions

    None

    Uses default behavior for resizing cells to fit contents. Ignores covered cells, does shrink size, does not include headers.

    Declaration
    public const GridResizeToFitOptions None
    Field Value
    Type
    GridResizeToFitOptions

    NoShrinkSize

    Do not shrink size of cells.

    Declaration
    public const GridResizeToFitOptions NoShrinkSize
    Field Value
    Type
    GridResizeToFitOptions

    ResizeCoveredCells

    Include covered cells for resizing cells. When using this mode, only the last row or column of a covered range is resized.

    Declaration
    public const GridResizeToFitOptions ResizeCoveredCells
    Field Value
    Type
    GridResizeToFitOptions
    Back to top Generated by DocFX
    Copyright © 2001 - 2026 Syncfusion Inc. All Rights Reserved