Syncfusion.Grid.Windows


PrepareViewStyleInfo Event

This event is raised to allow custom formatting of a cell by changing its style object just before it is drawn.
Syntax
'Declaration
 
<DescriptionAttribute("Occurs for every cell that is about be redrawn.")>
<CategoryAttribute("Behavior")>
Public Event PrepareViewStyleInfo As GridPrepareViewStyleInfoEventHandler
'Usage
 
Dim instance As GridControlBase
Dim handler As GridPrepareViewStyleInfoEventHandler
 
AddHandler instance.PrepareViewStyleInfo, handler
[Description("Occurs for every cell that is about be redrawn.")]
[Category("Behavior")]
public event GridPrepareViewStyleInfoEventHandler PrepareViewStyleInfo
Event Data

The event handler receives an argument of type GridPrepareViewStyleInfoEventArgs containing data related to this event. The following GridPrepareViewStyleInfoEventArgs properties provide information specific to this event.

PropertyDescription
(Inherited from System.ComponentModel.CancelEventArgs)
Gets the column index. (Inherited from Syncfusion.Windows.Forms.Grid.GridCellCancelEventArgs)
Gets the row index. (Inherited from Syncfusion.Windows.Forms.Grid.GridCellCancelEventArgs)
Gets the style object that contains all formatting information of the cell.  
Remarks
This allows formatting based on the current view state, e.g. current cell context, focused control etc.

See GridPrepareViewStyleInfoEventArgs for further discussion.

AssemblyVersion

Syncfusion.Grid.Windows: 17.3460.0.14

See Also