Class GridRangeMovedEventArgs
Inheritance
Inherited Members
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 |
---|
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 |
---|
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 |
---|
System.Int32 |