Syncfusion.SfGrid.WPF


CellTemplate Property (GridColumnBase)

Gets or sets the System.Windows.DataTemplate that is used to display the contents of a cell that is in display mode.
Syntax
'Declaration
 
Public Property CellTemplate As DataTemplate
'Usage
 
Dim instance As GridColumnBase
Dim value As DataTemplate
 
instance.CellTemplate = value
 
value = instance.CellTemplate
public DataTemplate CellTemplate {get; set;}

Property Value

The template that is used to display the contents of cell in a column that is in display mode. The default value is null.
Remarks
The Syncfusion.UI.Xaml.Grid.GridColumn.SetCellBoundValue decides whether the data context of the CellTemplate is based on Record or Syncfusion.UI.Xaml.Grid.DataContextHelper class. By default ,the Record is set as the DataContext for template. If SetCellBoundValue is true, the Syncfusion.UI.Xaml.Grid.DataContextHelper will be set. To define template for a cell that is in edit mode, use GridTemplateColumn.EditTemplate.
AssemblyVersion

Syncfusion.SfGrid.WPF: 17.3460.0.14

See Also