Class GridRangeRemovedEventArgs
Provides data about the RowsRemoved and ColsRemoved events.
Inheritance
Inherited Members
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 |
---|
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 |
---|
System.Int32 |