menu

WinForms

  • Code Examples
  • Upgrade Guide
  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Class GridRangeRemovingEventArgs - API Reference

    Show / Hide Table of Contents

    Class GridRangeRemovingEventArgs

    Provides data about the RowsRemoving and ColsRemoving events.

    Inheritance
    System.Object
    SyncfusionCancelEventArgs
    GridRangeRemovingEventArgs
    Inherited Members
    SyncfusionCancelEventArgs.ToString()
    Namespace: Syncfusion.Windows.Forms.Grid
    Assembly: Syncfusion.Grid.Windows.dll
    Syntax
    public sealed class GridRangeRemovingEventArgs : SyncfusionCancelEventArgs
    Remarks

    GridRangeRemovingEventArgs is a custom event argument class used by the RowsRemoving and ColsRemoving events.

    This event is raised by the model to notify all associated views that it is about to remove the specified rows or columns from its data store and all associated views should prepare to redraw affected display contents. The change can be originated programmatically by a method call too RemoveRange(Int32, Int32).

    The event handler can abort this operation by assigning True to the System.ComponentModel.CancelEventArgs.Cancel property. No changes will then take place in the grid model.

    Constructors

    GridRangeRemovingEventArgs(Int32, Int32)

    Initializes the new instances of the GridRangeRemovingEventArgs class.

    Declaration
    public GridRangeRemovingEventArgs(int from, int last)
    Parameters
    Type Name Description
    System.Int32 from

    The index of the first row or column to be removed.

    System.Int32 last

    The index of the last row or column to be removed.

    Properties

    From

    Gets the index of the first row or column to be removed.

    Declaration
    [TraceProperty(true)]
    public int From { get; }
    Property Value
    Type Description
    System.Int32

    To

    Gets the index of the last row or column to be removed.

    Declaration
    [TraceProperty(true)]
    public int To { get; }
    Property Value
    Type Description
    System.Int32

    See Also

    GridRangeRemovingEventHandler
    RemoveRange(Int32, Int32)
    GridRangeRemovedEventArgs
    Back to top Generated by DocFX
    Copyright © 2001 - 2023 Syncfusion Inc. All Rights Reserved