Simple question, we're having issues with some grids where they feel that the highlighted row and the alternate shaded row beneath are too similar. For now, to address this they've cancelled the alternating row highlights, which isn't desirable. Our Dev team cannot figure out a way to make the highlighted row field darker, can someone please explain via xaml or code behind how to achieve this please? Thank you-
Hello Dan,
You should also set the XamDataGrid’s FieldLayoutSettings’ HighlightAlternateRecords Property to True.
Hope this helps you.
Stefan,
I added this style to my grid but do not see the alternating background colors. I tested it be removing all other style elements. This is with WPF version 12.1.
-dan h
Hello,
I am just checking if you got this worked out or you still require any assistance or clarification on the matter.
Thank you for your post. I have been looking through it and I suggest you create a Style for the DataRecordCellArea and set its BackgroundAlternate property to the color you want You can do something like this:
<Style TargetType="{x:Type igDP:DataRecordCellArea}"> <Setter Property="BackgroundAlternate" Value="LightGray"/> </Style>
Please let me know if you need further assistance on this matter.
Looking forward for your reply.