Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
70
unable to set background color to row of a xamgrid.
posted

Hi

I want to change the background color for the rows of a xamgrid based on the condition. When i try the below code it is not successfully applying to all the columns or cells.

<Style TargetType="ig:CellControl">

<Setter Property="Background" Value="{Binding RowData.MaturityTenorViewModel.Tenor, Converter={StaticResource ColorConverter}}"></Setter>

</Style>

But when i use the below code it is able to set to all the colums in a row

<Style TargetType="ig:CellControl">

<Setter Property="Background" Value="Red"></Setter>

</Style>

I have both TextColumn and Unbound columns in the grid. But the catch here is if i change the TextColumn to Unbound the conditional binding is working for all the columns.

Why there is no background color property for the row ? and how to make this work ?

Parents Reply Children
No Data