Class GridCellsChangingEventArgs
Provides data about the CellsChanging event.
Inherited Members
Namespace: Syncfusion.Windows.Forms.Grid
Assembly: Syncfusion.Grid.Windows.dll
Syntax
public sealed class GridCellsChangingEventArgs : SyncfusionCancelEventArgs
Remarks
GridCellsChangingEventArgs is a custom event argument class used by the CellsChanging event.
This event is raised by the model to notify all associated views that it is the contents for the specified range of cells in the grid and all associated views are polled if they are ok with that change and prepare for redrawing the affected area of cells. The change can be originated by a mouse or keyboard input or programmatically by a ChangeCells(GridRangeInfo, GridStyleInfo[], StyleModifyType) method call.
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
GridCellsChangingEventArgs(GridRangeInfo, GridStyleInfo[], StyleModifyType)
Initializes the new instances of the GridCellsChangingEventArgs class.
Declaration
public GridCellsChangingEventArgs(GridRangeInfo range, GridStyleInfo[] cellsInfo, StyleModifyType mt)
Parameters
Type | Name | Description |
---|---|---|
GridRangeInfo | range | The range specifying the affected cells. |
GridStyleInfo[] | cellsInfo | The new contents to be stored in the cells. Can be NULL. |
StyleModifyType | mt | The StyleModifyType of the ChangeCells(GridRangeInfo, GridStyleInfo[], StyleModifyType) method call. |
Properties
CellsInfo
Gets the new contents to be stored in the cells. Can be NULL.
Declaration
public GridStyleInfo[] CellsInfo { get; }
Property Value
Type |
---|
GridStyleInfo[] |
ModiyType
Gets the StyleModifyType of the ChangeCells(GridRangeInfo, GridStyleInfo[], StyleModifyType) method call.
Declaration
[TraceProperty(true)]
public StyleModifyType ModiyType { get; }
Property Value
Type |
---|
StyleModifyType |
Range
Gets the range specifying the affected cells.
Declaration
[TraceProperty(true)]
public GridRangeInfo Range { get; }
Property Value
Type |
---|
GridRangeInfo |