20
Xamarin XamDataGrid Row Background Color
posted

Hello,

I have a XamDataGrid in use and would like to have several Background Colors for rows, depending on f.e. a viewModels Backgroud Color Property. Here you can see how i defined it in xaml. Can u please give me some hints or sample code to solve my problem?

 <igGrids:TextColumn PropertyPath="F200" 
                                            TextColor="White" 
                                            Background="Gray"
                                            HeaderText="{Binding DataGridHeader.F200}"
                                            IsHidden="{Binding DataGridHeader.F200, Converter={StaticResource StringToHiddenConverter}}">
                            <igGrids:TextColumn.Header>
                                <igGrids:TextHeader FontAttributes="Bold" />
                            </igGrids:TextColumn.Header>
                        </igGrids:TextColumn>