Syncfusion.SfDataGrid.WinForms
Example 


CellRenderers Property (SfDataGrid)

Gets the reference to the Syncfusion.WinForms.DataGrid.Renderers.GridCellRendererCollection instance which holds the collection of all predefined cell renderer Syncfusion.WinForms.DataGrid.GridVirtualizingCellRenderer .
Syntax
'Declaration
 
<CloneableAttribute(False)>
<BrowsableAttribute(False)>
Public ReadOnly Property CellRenderers As GridCellRendererCollection
'Usage
 
Dim instance As SfDataGrid
Dim value As GridCellRendererCollection
 
value = instance.CellRenderers
[Cloneable(false)]
[Browsable(false)]
public GridCellRendererCollection CellRenderers {get;}
Remarks

The cell renderer provides various properties and virtual methods to customize its operations. When any of the predefined renderer is customized , that should be replaced to the CellRenderers collection with its appropriate cell type. The below table shows the predefined renderer and its corresponding cell type associated with column.

Example
//The customized GridCellTextBoxRendererExt is replaced to CellRenderers collection after removed the default renderer of GridTextColumn.
this.dataGrid.CellRenderers.Remove("TextBox");
this.dataGrid.CellRenderers.Add("TextBox",new GridCellTextBoxRendererExt());
AssemblyVersion

Syncfusion.SfDataGrid.WinForms: 17.3460.0.26

See Also