Hi, im trying to bind a property to a templated datacolumn, but i dont get anything. The radgridview is binding to a simple dataset. <Window x:Class="LogViewer.MainWindow" |
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" |
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" |
Title="MainWindow" xmlns:telerik="http://schemas.telerik.com/2008/xaml/presentation" |
Drop="Window_Drop" AllowDrop="True" |
xmlns:local="clr-namespace:LogViewer"> |
<Grid> |
<Grid.Resources> |
<Style x:Key="customCell" TargetType="telerik:GridViewCell"> |
<Setter Property="Template"> |
<Setter.Value> |
<ControlTemplate TargetType="telerik:GridViewCell"> |
<TextBlock Text="{Binding type1}" /> |
</ControlTemplate> |
</Setter.Value> |
</Setter> |
</Style> |
</Grid.Resources> |
<telerik:RadGridView Name="radGridView1" AutoGenerateColumns="True" telerik:StyleManager.Theme="Vista"> |
<telerik:RadGridView.Columns> |
<telerik:GridViewDataColumn Header="" TextAlignment="Center" |
CellStyle="{StaticResource customCell}" IsSortable="False" Width="76" /> |
</telerik:RadGridView.Columns> |
</telerik:RadGridView> |
</Grid> |
</Window> |