Syncfusion.Grid.Windows
Members 


Syncfusion.Windows.Forms.Grid Namespace : GridRowColSizeEventArgs Class

GridRowColSizeEventArgs Class

Provides data about the GridModel.QueryColWidth, GridModel.QueryRowHeight, SaveColWidth, and SaveRowHeight events which can be marked as handled.
Syntax
'Declaration
 
Public NotInheritable Class GridRowColSizeEventArgs 
   Inherits Syncfusion.ComponentModel.SyncfusionHandledEventArgs
'Usage
 
Dim instance As GridRowColSizeEventArgs
public sealed class GridRowColSizeEventArgs : Syncfusion.ComponentModel.SyncfusionHandledEventArgs 
Remarks
GridRowColSizeEventArgs is a custom event argument class used by the GridModel.QueryColWidth, GridModel.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 GridModelRowColSizeIndexer.Item.

If you made changes to Size you should also set Syncfusion.ComponentModel.SyncfusionHandledEventArgs.Handled to True. GridModel.QueryColWidth and GridModel.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 GridModelRowColSizeIndexer.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 IGridRowColSizeDictionary.Item.

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 IGridRowColSizeDictionary.Item property.

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.

Inheritance Hierarchy

System.Object
   System.EventArgs
      Syncfusion.ComponentModel.SyncfusionEventArgs
         Syncfusion.ComponentModel.SyncfusionHandledEventArgs
            Syncfusion.Windows.Forms.Grid.GridRowColSizeEventArgs

AssemblyVersion

Syncfusion.Grid.Windows: 18.2460.0.44

See Also