menu

WinUI

  • Code Examples
  • Upgrade Guide
  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Class GridRowSizingOptions - WinUI API Reference | Syncfusion

    Show / Hide Table of Contents

    Class GridRowSizingOptions

    Represents a class that provides options to customize the auto row sizing in SfDataGrid.

    Inheritance
    System.Object
    GridRowSizingOptions
    Namespace: Syncfusion.UI.Xaml.DataGrid
    Assembly: Syncfusion.Grid.WinUI.dll
    Syntax
    public class GridRowSizingOptions : Object

    Constructors

    GridRowSizingOptions()

    Initializes a new instance of GridRowSizingOptions class.

    Declaration
    public GridRowSizingOptions()

    Properties

    AutoFitMode

    Gets or sets a value that indicates the mode for calculating the height of the cell based on cell content. SmartFit calculates the column height in optimized way.

    Declaration
    public AutoFitMode AutoFitMode { get; set; }
    Property Value
    Type Description
    AutoFitMode

    One of the AutoFitMode enumeration that specifies the way to measure the height of each cell in corresponding row. The default value is SmartFit.

    CanIncludeHiddenColumns

    Gets or sets a value that indicates whether the hidden columns can be included during auto row sizing operation.

    Declaration
    public bool CanIncludeHiddenColumns { get; set; }
    Property Value
    Type Description
    System.Boolean

    true if the hidden columns are included; otherwise, false.

    ExcludeColumns

    Gets or sets the list of columns that needs to be excluded during row height calculation based on cell content.

    Declaration
    public List<string> ExcludeColumns { get; set; }
    Property Value
    Type
    System.Collections.Generic.List<System.String>
    Back to top Generated by DocFX
    Copyright © 2001 - 2025 Syncfusion Inc. All Rights Reserved