Class GridRowColSizeChangingEventArgs
Provides data about the RowHeightsChanging and ColWidthsChanging events.
Inherited Members
Namespace: Syncfusion.Windows.Forms.Grid
Assembly: Syncfusion.Grid.Windows.dll
Syntax
public sealed class GridRowColSizeChangingEventArgs : SyncfusionCancelEventArgs
Remarks
GridRowColSizeChangingEventArgs is a custom event argument class used by the RowHeightsChanging and ColWidthsChanging events.
This event is raised by the model to notify all associated views that it is about to change the size for the specified range of rows and columns in the grid and all associated views should prepare to redraw affected display contents. The change can be originated by a mouse or keyboard input or programmatically by changing Item[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
GridRowColSizeChangingEventArgs(Int32, Int32, Int32[])
Initializes the new instances of the GridRowColSizeChangingEventArgs class.
Declaration
public GridRowColSizeChangingEventArgs(int from, int last, int[] values)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | from | The first row or column index of the affected range. |
System.Int32 | last | The last row or column index of the affected range. |
System.Int32[] | values | The new size of the affected columns or rows. |
Properties
From
Gets the first row or column index of the affected range.
Declaration
[TraceProperty(true)]
public int From { get; }
Property Value
Type |
---|
System.Int32 |
To
Gets the last row or column index of the affected range.
Declaration
[TraceProperty(true)]
public int To { get; }
Property Value
Type |
---|
System.Int32 |
Values
Gets the new size of the affected columns or rows.
Declaration
public int[] Values { get; }
Property Value
Type |
---|
System.Int32[] |