Syncfusion.Grid.Windows


Event data

OnPrepareViewStyleInfo Method (GridCellRendererBase)

Allows custom formatting of a cell by changing its style object.
Syntax
'Declaration
 
Public Overridable Sub OnPrepareViewStyleInfo( _
   ByVal e As GridPrepareViewStyleInfoEventArgs _
) 
'Usage
 
Dim instance As GridCellRendererBase
Dim e As GridPrepareViewStyleInfoEventArgs
 
instance.OnPrepareViewStyleInfo(e)
public virtual void OnPrepareViewStyleInfo( 
   GridPrepareViewStyleInfoEventArgs e
)

Parameters

e
Event data
Remarks
OnPrepareViewStyleInfo is called from GridControlBase.PrepareViewStyleInfo in order to allow custom formatting of a cell by changing its style object.

Set the cancel property true if you want to avoid the associated cell renderers object OnPrepareViewStyleInfo method to be called.

Changes made to the style object will not be saved in the grid nor cached. This event is called every time a portion of the grid is repainted and the specified cell belongs to the invalidated region of the window that needs to be redrawn.

Changes to the style object done at this time will also not be reflected when accessing cells though the models indexer. See GridModel.QueryCellInfo.

Do not change base style or cell type at this time.

AssemblyVersion

Syncfusion.Grid.Windows: 18.2460.0.44

See Also