Syncfusion.SfGrid.WPF
Example 


CellRenderers Property (SfDataGrid)

Gets the reference to the Syncfusion.UI.Xaml.Grid.Cells.GridCellRendererCollection instance which holds the collection of all predefined cell renderers Syncfusion.UI.Xaml.Grid.Cells.GridVirtualizingCellRenderer .
Syntax
'Declaration
 
Public ReadOnly Property CellRenderers As GridCellRendererCollection
'Usage
 
Dim instance As SfDataGrid
Dim value As GridCellRendererCollection
 
value = instance.CellRenderers
public GridCellRendererCollection CellRenderers {get;}
Remarks

The cell renderers 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 renderers and its corresponding cell type associated with column.

Renderer  Class Cell Type Associated column
GridCellTextBoxRenderer TextBox GridTextColumn
GridCellNumericRenderer Numeric GridNumericColumn
GridCellCheckBoxRenderer CheckBox GridCheckBoxColumn
GridCellTemplateRenderer Template GridTemplateColumn
GridCellImageRenderer Image GridImageColumn
GridUnBoundCellTextBoxRenderer UnBoundTextColumn GridUnBoundColumn
GridUnBoundCellTemplateRenderer UnBoundTemplateColumn GridUnBoundColumn
GridCellComboBoxRenderer ComboBox GridComboBoxColumn
GridCellDateTimeRenderer DateTime GridDateTimeColumn
GridCellHyperLinkRenderer HyperLink GridHyperLinkColumn
GridCellMaskRenderer Mask GridMaskColumn
GridCellPercentageRenderer Percent GridPercentColumn
GridCellCurrencyRenderer Currency GridCurrencyColumn
GridCellMultiColumnDropDownRenderer MultiColumnDropDown GridMultiColumnDropDownList
GridCellTimeSpanRenderer TimeSpan GridTimeSpanColumn
GridTableSummaryCellRenderer TableSummary -
GridCaptionSummaryCellRenderer CaptionSummary -
GridSummaryCellRenderer GroupSummary -
GridDataHeaderCellRenderer Header -
GridStackedHeaderCellRenderer StackedHeader -
GridCellTextBlockRenderer TextBlock -
GridRowHeaderCellRenderer RowHeader -
GridDetailsViewExpanderCellRenderer DetailsViewExpander -
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.SfGrid.WPF: 17.1460.0.47

See Also