menu

Blazor

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

    Show / Hide Table of Contents

    Class RowResizingEventArgs

    Provides information about the RowResizing event.

    Inheritance
    System.Object
    RowResizedEventArgs
    RowResizingEventArgs
    Inherited Members
    RowResizedEventArgs.RowHeight
    RowResizedEventArgs.RowIndex
    Namespace: Syncfusion.Blazor.Spreadsheet
    Assembly: Syncfusion.Blazor.Spreadsheet.dll
    Syntax
    public class RowResizingEventArgs : RowResizedEventArgs
    Remarks

    This event handler receives a RowResizingEventArgs object which provides the details of the resizing row. You can prevent the resize action using Cancel event argument.

    Constructors

    RowResizingEventArgs()

    Declaration
    public RowResizingEventArgs()

    Properties

    Cancel

    Gets or sets a value indicating whether to cancel the resize action.

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

    A System.Boolean indicating whether the row resize action should be cancelled. The default value is false. If set to false, the row resize action will be cancelled.

    Remarks

    This property allows intercepting and preventing row resize operations before they complete.

    Examples
    // Handle the row resizing event to implement custom height validation
    private void OnRowResizing(RowResizingEventArgs args)
    {
        // Prevent rows from becoming too small
        if (args.RowHeight < 25)
        {
            args.Cancel = true;
        }
    
        // Block resizing specific rows
        if (args.RowIndex == 0 || args.RowIndex == 5)
        {
            args.Cancel = true;
        }
    }
    Back to top Generated by DocFX
    Copyright © 2001 - 2025 Syncfusion Inc. All Rights Reserved