Class GridCellsChangedEventArgs
Provides data about the CellsChanged event.
Inheritance
Inherited Members
Namespace: Syncfusion.Windows.Forms.Grid
Assembly: Syncfusion.Grid.Windows.dll
Syntax
public sealed class GridCellsChangedEventArgs : SyncfusionSuccessEventArgs
Remarks
GridCellsChangedEventArgs is a custom event argument class used by the CellsChanged event.
This event is raised by the model to notify all associated views that there has been a change to the specified range of cells in the grid and all associated views should redraw affected display contents. The change can be originated by a mouse or keyboard input or programmatically by a ChangeCells(GridRangeInfo, GridStyleInfo[], StyleModifyType) method call.
The Success property indicates if all changes were made to the model. If it is false, the operation is aborted. However, the view contents need to be redrawn no matter if the operation was successful or not.
Constructors
GridCellsChangedEventArgs(GridRangeInfo, GridStyleInfo[], Boolean)
Initializes the new instances of the GridCellsChangedEventArgs class.
Declaration
public GridCellsChangedEventArgs(GridRangeInfo range, GridStyleInfo[] savedCellsInfo, bool success)
Parameters
Type | Name | Description |
---|---|---|
GridRangeInfo | range | The range specifying the affected cells. |
GridStyleInfo[] | savedCellsInfo | Information about cell contents before the changes were applied to the grid. |
System.Boolean | success | Indicates whether an operation was successful. |
Properties
Range
Gets the range specifying the affected cells.
Declaration
[TraceProperty(true)]
public GridRangeInfo Range { get; }
Property Value
Type |
---|
GridRangeInfo |
SavedCellsInfo
Gets the Information about cell contents before the changes were applied to the grid.
Declaration
public GridStyleInfo[] SavedCellsInfo { get; }
Property Value
Type |
---|
GridStyleInfo[] |