Hi,
I made a table using RadGridView and in one of my columns I wanna have another XAML element insted of having text.
I have columns like this one :
<telerik:GridViewDataColumn UniqueName="NameColumn"
x:Name="NameColumn"
Width="*"
TextAlignment="Left"
Header="{Resx Common_Label}"
MinWidth="200"
DataMemberBinding="{Binding TankName}"
IsFilterable="False">
<telerik:GridViewColumn.CellStyle>
<Style TargetType="telerik:GridViewCell">
<Setter Property="Template">
<Setter.Value>
<ControlTemplate>
<Border BorderBrush="LightBlue" BorderThickness="0 0 1 0">
<TextBlock HorizontalAlignment="Stretch" VerticalAlignment="Center" TextAlignment="Left" Margin="20, 0, 0, 0" Text="{Binding TankName}" FontFamily="Segoe UI" FontSize="16" />
</Border>
</ControlTemplate>
</Setter.Value>
</Setter>
</Style>
</telerik:GridViewColumn.CellStyle>
</telerik:GridViewDataColumn>
<telerik:GridViewDataColumn UniqueName="ErrorColumn"
x:Name="ErrorColumn"
Width="*"
MinWidth="200"
IsFilterable="False">
<common:ErrorDiode x:Name="DiodeError" ></common:ErrorDiode>
</telerik:GridViewDataColumn>
And Visual Studio shows me an error saying that's impossible to have direct content in GridViewDataColumn.
What should I do?