Class GridRangeRemovingEventArgs
Provides data about the RowsRemoving and ColsRemoving events.
Inherited Members
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 |
---|
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 |
---|
System.Int32 |