Here Status is the Entity Class Property
<telerik:RadGridView MinHeight="150"
Grid.Row="1"
Name="rgvContractor"
HorizontalAlignment="Stretch"
VerticalAlignment="Stretch"
ShowGroupPanel="False"
IsFilteringAllowed="True"
telerik:StyleManager.Theme="Summer"
AutoGenerateColumns="False"
ShowColumnFooters="True"
SelectionMode="Extended"
IsReadOnly="True"
>
<telerik:RadGridView.Resources>
<Style TargetType="{x:Type telerik:GridViewRow}">
<Style.Triggers>
<DataTrigger Binding="{Binding Path=Status}" Value="True">
<DataTrigger.Setters>
<Setter Property="Background" Value="#FFB8FAC9"
/>
</DataTrigger.Setters>
</DataTrigger>
</Style.Triggers>
</Style>
</telerik:RadGridView.Resources>
<telerik:RadGridView.Columns>
<telerik:GridViewDataColumn IsReadOnly="True"
UniqueName="Firstname"
Width="auto"
Header="First
Name"
IsResizable="True"
DataMemberBinding="{Binding Firstname}">
<telerik:GridViewDataColumn.AggregateFunctions>
<telerik:CountFunction Caption="Total
:"/>
</telerik:GridViewDataColumn.AggregateFunctions>
</telerik:GridViewDataColumn>
</telerik:RadGridView.Columns>
</telerik:RadGridView>
No comments:
Post a Comment