Class GridRangeInsertedEventArgs
Provides data about the RowsInserted and ColsInserted events.
Inheritance
Inherited Members
Namespace: Syncfusion.Windows.Forms.Grid
Assembly: Syncfusion.Grid.Windows.dll
Syntax
public sealed class GridRangeInsertedEventArgs : SyncfusionSuccessEventArgs
Remarks
GridRangeInsertedEventArgs is a custom event argument class used by the RowsInserted and ColsInserted events.
This event is raised by the model to notify all associated views that it has inserted the specified number of rows or column into its data store and all associated views should redraw affected display contents. The change can be originated programmatically by a method call to InsertRange(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
GridRangeInsertedEventArgs(Int32, Int32, GridModelInsertRangeOptions, Boolean)
Initializes a new instances ofGridRangeInsertedEventArgs class.
Declaration
public GridRangeInsertedEventArgs(int insertAt, int count, GridModelInsertRangeOptions iro, bool success)
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. |
System.Boolean | success | Indicates whether an operation was successful. |
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. |