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
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>

Parents Reply Children
No Data