Hi Support,
Please suggest how to apply different style for First row of Level 2, in a 4 Level Hierarchial xamDataPresenter or xamDataGrid.
Thanks,
Shakti
Hello,
I am just checking the progress of this issue and was wondering if you managed to achieve your goal or if you need any further assistance on the matter.
Hello Shakti,
Thank you for your post. I have been looking into it and I suggest you use the following Style for the DataRecordPresenter:
<Style TargetType="{x:Type igDP:DataRecordPresenter}"> <Style.Triggers> <MultiDataTrigger> <MultiDataTrigger.Conditions> <Condition Binding="{Binding RelativeSource={RelativeSource Mode=Self},Path=Record.NestingDepth}" Value="2"/> <Condition Binding="{Binding RelativeSource={RelativeSource Mode=Self},Path=Record.Index}" Value="0"/> </MultiDataTrigger.Conditions> <MultiDataTrigger.Setters> <Setter Property="Background" Value="Red"/> </MultiDataTrigger.Setters> </MultiDataTrigger> </Style.Triggers> </Style>
I used MultiTrigger to check the Record’s Index and NestingDepth and if they match 0 and 2 I add Setters to the DataRecordPresenter. Please let me know if this helps you or you need further assistance on this matter.
Looking forward for your reply.
I would really appreciate a quick response.