menu

MAUI

  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Class ColumnWidthMode - MAUI API Reference | Syncfusion

    Show / Hide Table of Contents

    Class ColumnWidthMode

    Defines constants that specify how the columns in a SfDataGrid are sized.

    Inheritance
    System.Object
    ColumnWidthMode
    Namespace: Syncfusion.Maui.DataGrid
    Assembly: Syncfusion.Maui.DataGrid.dll
    Syntax
    public sealed class ColumnWidthMode : Enum

    Fields

    Auto

    Set the column width by calculating the maximum size among the header cell and among the cells in column.

    Declaration
    public const ColumnWidthMode Auto
    Field Value
    Type
    ColumnWidthMode

    Fill

    Divides the total width equally for columns.

    Declaration
    public const ColumnWidthMode Fill
    Field Value
    Type
    ColumnWidthMode

    FitByCell

    Set the column width by calculating the maximum size among the data cells in column except header cells.

    Declaration
    public const ColumnWidthMode FitByCell
    Field Value
    Type
    ColumnWidthMode

    FitByHeader

    Calculates the width of column based on header.

    Declaration
    public const ColumnWidthMode FitByHeader
    Field Value
    Type
    ColumnWidthMode

    LastColumnFill

    Calculates the width for the columns except the last column which is visible and the remaining width from total width of SfDataGrid is set to last column if width of this column is not set.

    Declaration
    public const ColumnWidthMode LastColumnFill
    Field Value
    Type
    ColumnWidthMode

    None

    No auto-column sizing for the columns. Default column width or defined width set to column.

    Declaration
    public const ColumnWidthMode None
    Field Value
    Type
    ColumnWidthMode
    Back to top Generated by DocFX
    Copyright © 2001 - 2025 Syncfusion Inc. All Rights Reserved