menu

WinForms

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

    Show / Hide Table of Contents

    Class GridRangeRemovedEventArgs

    Provides data about the RowsRemoved and ColsRemoved events.

    Inheritance
    System.Object
    System.EventArgs
    SyncfusionEventArgs
    SyncfusionSuccessEventArgs
    GridRangeRemovedEventArgs
    Inherited Members
    SyncfusionSuccessEventArgs.Success
    SyncfusionEventArgs.ToString()
    System.EventArgs.Empty
    System.Object.Equals(System.Object)
    System.Object.Equals(System.Object, System.Object)
    System.Object.ReferenceEquals(System.Object, System.Object)
    System.Object.GetHashCode()
    System.Object.GetType()
    System.Object.MemberwiseClone()
    Namespace: Syncfusion.Windows.Forms.Grid
    Assembly: Syncfusion.Grid.Windows.dll
    Syntax
    public sealed class GridRangeRemovedEventArgs : SyncfusionSuccessEventArgs
    Remarks

    GridRangeRemovedEventArgs is a custom event argument class used by the RowsRemoved and ColsRemoved events.

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

    The Success property indicates if all changes were successfully made to the model. If it is false, the operation was aborted. However, the view contents need to be redrawn no matter if the operation was successful or not.

    Constructors

    GridRangeRemovedEventArgs(Int32, Int32, GridModelInsertRangeOptions, Boolean)

    Initializes the new instances of the GridRangeRemovedEventArgs class.

    Declaration
    public GridRangeRemovedEventArgs(int from, int last, GridModelInsertRangeOptions iro, bool success)
    Parameters
    Type Name Description
    System.Int32 from

    The index of the first row or column that was removed.

    System.Int32 last

    The index of the last row or column that was removed.

    GridModelInsertRangeOptions iro

    Provides information about the cells that have been removed such as row heights, column widths, and hidden state of rows or columns.

    System.Boolean success

    Indicates whether an operation was successful.

    Properties

    From

    Gets the index of the first row or column that was removed.

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

    InsertRangeOptions

    Gets the information about the cells that have been removed such as row heights, column widths, and hidden state of rows or columns.

    Declaration
    public GridModelInsertRangeOptions InsertRangeOptions { get; }
    Property Value
    Type Description
    GridModelInsertRangeOptions

    A GridModelInsertRangeOptions that holds information about the cells that have been deleted such as cell contents, row, and column sizes and more.

    Remarks

    If undo generation is enabled for the grid InsertRangeOptions will also contain information about the cells that have been deleted.

    To

    Gets the index of the last row or column that was removed.

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

    See Also

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