Hi,
How can i set the background of a row to a color based on the value of one of its columns?
I have written a convert that changes the statusid to a brush but i don't know how to apply it to the row
I tried this but that didn't work
Regards,
Bram
How can i set the background of a row to a color based on the value of one of its columns?
I have written a convert that changes the statusid to a brush but i don't know how to apply it to the row
I tried this but that didn't work
| <Grid.Resources> |
| <Style TargetType="{x:Type Telerik:GridViewRow}"> |
| <Setter Property="Background"> |
| <Setter.Value> |
| <SolidColorBrush Color="{Binding Path=StatusId, Converter={StaticResource ConvertDocumentColor}}"></SolidColorBrush> |
| </Setter.Value> |
| </Setter> |
| </Style> |
| </Grid.Resources> |
Regards,
Bram