Class GridRowColSizeEventArgs
Provides data about the QueryColWidth, QueryRowHeight, SaveColWidth, and SaveRowHeight events which can be marked as handled.
Inheritance
Inherited Members
Namespace: Syncfusion.Windows.Forms.Grid
Assembly: Syncfusion.Grid.Windows.dll
Syntax
public sealed class GridRowColSizeEventArgs : SyncfusionHandledEventArgs
Remarks
GridRowColSizeEventArgs is a custom event argument class used by the QueryColWidth, QueryRowHeight, SaveColWidth, and SaveRowHeight events to query or save the row and column widths of the grid.
This event allows you to customize the row and column sizes at run-time on demand before the grid is drawn or programmatically accessed through Item[Int32].
If you made changes to Size you should also set Handled to True. QueryColWidth and QueryRowHeight will return Size as the actual size of the row or column being queried when the event is marked as handled. Otherwise, the grid will check its own data store Dictionary. In the default case when the event is not marked as handled, the grid will locate row and column widths by getting the value from Item[Int32].
In SaveColWidth and SaveRowHeight, the grid will not store row and column if you mark the event as handled. Otherwise, in the default case that the event is not marked as handled, the row and column width is stored by changing the Item[Int32] property.
note
The intention of this event is to store and retrieve data. See GridRowColSizeChangedEventArgs for the related UI event after changes are made to the data store.
Constructors
GridRowColSizeEventArgs(Int32, Int32)
Initializes the new instances of the GridRowColSizeEventArgs class.
Declaration
public GridRowColSizeEventArgs(int index, int size)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | index | The row or column index. |
System.Int32 | size | The row height or column width. If size is less than 0, the grid will use the default size for row or column widths. See DefaultSize. |
Properties
Index
Gets the row or column index.
Declaration
[TraceProperty(true)]
public int Index { get; }
Property Value
Type |
---|
System.Int32 |
Size
Gets or sets the row height or column width. If size is less than 0, the grid will use the default size for row or column widths. See DefaultSize.
Declaration
[TraceProperty(true)]
public int Size { get; set; }
Property Value
Type |
---|
System.Int32 |