menu

WinForms

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

    Show / Hide Table of Contents

    Class GridRangeMovingEventArgs

    Provides data about the RowsMoving and ColsMoving events.

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

    GridRangeMovingEventArgs is a custom event argument class used by the RowsMoving and ColsMoving events.

    This event is raised by the model to notify all associated views that it is about to rearrange the specified rows or columns in its data store and all associated views should prepare to redraw affected display contents. The change can be originated programmatically by a method call to MoveRange(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

    GridRangeMovingEventArgs(Int32, Int32, Int32)

    Initializes the new instances of the GridRangeMovingEventArgs class.

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

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

    System.Int32 count

    The number of rows or columns to be moved.

    System.Int32 target

    The row or column index where the cells should be inserted before.

    Properties

    Count

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

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

    From

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

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

    Target

    Gets the row or column index where the cells should be inserted before.

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

    See Also

    GridRangeMovingEventHandler
    MoveRange(Int32, Int32)
    GridRangeMovedEventArgs
    Back to top Generated by DocFX
    Copyright © 2001 - 2025 Syncfusion Inc. All Rights Reserved