Class GridRangeInsertingEventArgs
Provides data about the RowsInserting and ColsInserting events.
Inherited Members
Namespace: Syncfusion.Windows.Forms.Grid
Assembly: Syncfusion.Grid.Windows.dll
Syntax
public sealed class GridRangeInsertingEventArgs : SyncfusionCancelEventArgs
Remarks
GridRangeInsertingEventArgs is a custom event argument class used by the RowsInserting and ColsInserting events.
This event is raised by the model to notify all associated views that it is about to insert the specified number of rows or column into 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 InsertRange(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
GridRangeInsertingEventArgs(Int32, Int32, GridModelInsertRangeOptions)
Initializes a new instances ofGridRangeInsertingEventArgsclass.
Declaration
public GridRangeInsertingEventArgs(int insertAt, int count, GridModelInsertRangeOptions iro)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | insertAt | The row or column index where the cells should be inserted before. |
System.Int32 | count | The number of rows or columns. |
GridModelInsertRangeOptions | iro | Information about the cells to be inserted such as cell contents, row, and column sizes and more. |
Properties
Count
Gets the number of rows or columns.
Declaration
[TraceProperty(true)]
public int Count { get; }
Property Value
Type |
---|
System.Int32 |
InsertAt
Gets the row or column index where the cells should be inserted before.
Declaration
[TraceProperty(true)]
public int InsertAt { get; }
Property Value
Type |
---|
System.Int32 |
InsertRangeOptions
Gets the Information about the cells to be inserted such as cell contents, row, and column sizes and more.
Declaration
public GridModelInsertRangeOptions InsertRangeOptions { get; }
Property Value
Type | Description |
---|---|
GridModelInsertRangeOptions | A GridModelInsertRangeOptions that holds information about the cells to be inserted such as cell contents, row, and column sizes and more. |