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.
Public Property CellTemplate As DataTemplate
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.
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.

Syncfusion.SfGrid.WPF: 17.1460.0.47

See Also