WinForms

Upgrade Guide User Guide Demos Support Forums Download
  • Upgrade Guide
  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Class GridRangeMovedEventArgs - WindowsForms API Reference | Syncfusion RowsMoved and ColsMoved events. ">

    Show / Hide Table of Contents

    Class GridRangeMovedEventArgs

    Provides data about the RowsMoved and ColsMoved events.

    Inheritance
    System.Object
    System.EventArgs
    SyncfusionEventArgs
    SyncfusionSuccessEventArgs
    GridRangeMovedEventArgs
    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 GridRangeMovedEventArgs : SyncfusionSuccessEventArgs
    Remarks

    GridRangeMovedEventArgs is a custom event argument class used by the RowsMoved and ColsMoved 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 to MoveRange(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

    GridRangeMovedEventArgs(Int32, Int32, Int32, Boolean)

    Initializes the new instances of the GridRangeMovedEventArgs class.

    Declaration
    public GridRangeMovedEventArgs(int from, int count, int target, bool success)
    Parameters
    Type Name Description
    System.Int32 from

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

    System.Int32 count

    The number of rows or columns that was moved.

    System.Int32 target

    The row or column index where the cells were inserted before.

    System.Boolean success

    Indicates whether an operation was successful.

    Properties

    Count

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

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

    From

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

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

    Target

    Gets the row or column index where the cells were inserted before.

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

    See Also

    GridRangeMovedEventHandler
    MoveRange(Int32, Int32)
    GridRangeMovingEventArgs
    Back to top Generated by DocFX
    Copyright © 2001 - 2022 Syncfusion Inc. All Rights Reserved