Class RowResizingEventArgs
Provides information about the RowResizing event.
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 |
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;
}
}