Hi
I have a xamdatagrid with a tree structure data source and I’ve colorized alternate rows with two properties named “BackgroundAlternate” and “HighlightAlternateRecords”
But
When nested rows are visible the row colorization is NOT Eye-Catching and the separation between parent rows color and children rows color is so HARD
So
I decided to change the nested rows alternate background to another color
In The Other Hand
I want the alternate background of first level of my tree structure in xamdatagrid would be (for example) Green
And
The alternate background of (at least) second level of my tree structure in xamdatagrid would be (for example) Red.
Could you please help me in this case?
Sincerely.
Hello,
I am just checking your progress on the issue.
If you have any other questions on the matter, please feel free to ask.
you need to set the DataRecordCellAreaStyle on the main field layout to the following style:
<Style TargetType="{x:Type igDP:DataRecordCellArea}"> <Setter Property="BackgroundAlternate" Value="Green" /> </Style>
For your inner layout yu need to provide a style that is setting the BackgroundAlternate prop to Red.
Check out the attached sample.
Regards,