DataGrid AlternateRowBackgroundStyle not working when RowBackgroundStyle is set

1 Answer 57 Views
DataGrid
René
Top achievements
Rank 1
Iron
René asked on 16 Nov 2023, 07:01 AM

I want to use alternate row style, while also styling the other rows. But if I set RowBackgroundStyle, then the AlternateRowBackgroundStyle is ignored?

Here's the code for my grid:

And this is the result:

 

However, if I remove the RowBackgroundStyle, then it looks like this:

Because default background color is black, it now looks like this. Is it really not possible to style the two sets of rows?

René
Top achievements
Rank 1
Iron
commented on 16 Nov 2023, 07:03 AM

Basically what I want is have odd rows white background, and even rows light grey background. But this seems impossible?

1 Answer, 1 is accepted

Sort by
0
Accepted
René
Top achievements
Rank 1
Iron
answered on 16 Nov 2023, 07:34 AM
Setting Background on the RadDataGrid seemed to resolve the issue. Now styling works on both row sets.
Tags
DataGrid
Asked by
René
Top achievements
Rank 1
Iron
Answers by
René
Top achievements
Rank 1
Iron
Share this question
or