Syncfusion.Grid.Windows
Example 


CellRenderers Property (GridControlBase)

Gets the collection of GridCellRendererBase objects for the current grid view method.
Syntax
'Declaration
 
<DesignerSerializationVisibilityAttribute(DesignerSerializationVisibility.Hidden)>
<BrowsableAttribute(False)>
Public ReadOnly Property CellRenderers As GridCellRendererCollection
'Usage
 
Dim instance As GridControlBase
Dim value As GridCellRendererCollection
 
value = instance.CellRenderers
[DesignerSerializationVisibility(DesignerSerializationVisibility.Hidden)]
[Browsable(false)]
public GridCellRendererCollection CellRenderers {get;}
Remarks
Cell renderers will be created on demand by calling the GridCellModelBase.CreateRenderer. Each renderer is associated with a GridCellModelBase object that holds its data and has knowledge how to instantiate a renderer and associates it with a grid view.

A renderer is created for each grid view but renderers (of the same cell type) share the same GridCellModelBase instance even though they belong to different grid views.

Example
The following examples show how to get a reference to the renderer for a specific cell.
GridStyleInfo style = Model[rowIndex, colIndex];
GridCellRendererBase renderer = CellRenderers[style.CellType];
AssemblyVersion

Syncfusion.Grid.Windows: 17.3460.0.26

See Also