<Window x:Class="Ticket209422_RowStyleAccordingToDataItem.Window1"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
	xmlns:telerik="http://schemas.telerik.com/2008/xaml/presentation"
    Title="Window1" Height="300" Width="300">
    <Grid>
		<telerik:RadGridView AutoGenerateColumns="False" Name="RadGridView1" ColumnWidth="*">
            <telerik:RadGridView.Resources>
                <Style x:Key="StatusBlock" TargetType="TextBlock">
                    <!--<The following Setter means that the default Text of the TextBlock element is bound to the property of this object>-->
                    <Setter Property="Text" Value="{Binding Path=DigitalSignature}"/>
                    <Style.Triggers>
                        <DataTrigger Binding="{Binding Path=DigitalSignature}" Value="{x:Null}">
                            <Setter Property="TextBlock.Text" Value="~"/>
                        </DataTrigger>
                    </Style.Triggers>
                </Style>
            </telerik:RadGridView.Resources>
            <telerik:RadGridView.Columns>
                <telerik:GridViewDataColumn Header="DigitalSignature">
                    <telerik:GridViewDataColumn.CellTemplate>
                        <DataTemplate>
                            <TextBlock Style="{StaticResource StatusBlock}"/>
                        </DataTemplate>
                    </telerik:GridViewDataColumn.CellTemplate>
                </telerik:GridViewDataColumn>
            </telerik:RadGridView.Columns>
        </telerik:RadGridView>
    </Grid>
</Window>
