Hi,
I'd like to set a global CellTemplate, which I use for a GridTemplateColumn.
I defined the following DataTemplate in my App.xaml:
<DataTemplate x:Key="myCell">
<Label Text="{Binding}"/>
</DataTemplate>
But if I use this DataTemplate in a GridTemplateColumn as CellTemplate, the binding won't work:
<syncfusion:GridTemplateColumn MappingName="name" HeaderText="Name" CellTemplate="{StaticResource myCell}"/>
If I set the binding in the DataTemplate to {Binding name}, I get the property. But I'd like to use the datatemplate dynamically.
Even if I set the BindingContext="{Binding name}" for the GridTemplateColumn, I won't get any result.
Any ideas on how to solve this issue?
Thanks!