Hi,
I have a XamDataGrid. I have configured this setting so that I can disable highlighting on row hover.
<igDP:XamDataGrid.Resources> <Style TargetType="{x:Type igDP:DataRecordCellArea}"> <Setter Property="BackgroundHover" Value="Transparent"/> <Setter Property="BackgroundSelected" Value="Transparent"/> </Style> </igDP:XamDataGrid.Resources>
Now my problem is when I select any cell then that row gets highlighted. I want to remove row highlighting even if I click on some cell.
How this can be done ? Please help.
I have also attached a screenshot of my issue.
Thanks
Arpita
Thank you, Stefan. I did use all the brushes and now cell is not highlighting
Hello Sergey,
Thank you for your post. I have been looking into it and I can suggest you use the Style for the CellValuePresenter, which I shared in my previous post in order to remove the highlight border of the cells.
Hope this helps you.
Hi Stefan,
I have similar problem - a click on cell highlights it with annoying blue brush. I have disabled all highlighting using DataRecordCellArea style, but cannot get cell background not to change on click.
<Style TargetType="{x:Type igDP:DataRecordCellArea}" >
<Setter Property="BackgroundSelected" Value="Transparent" />
<Setter Property="BackgroundActive" Value="Transparent" />
<Setter Property="BackgroundHover" Value="Transparent" />
</Style>
Is there a way to disable all the highlighting in XamDataGrid ?
Hello Arpita,
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.
Thank you for your post. I have been looking into and I can suggest you use the following two Styles instead of yours:
<igDP:XamDataGrid.Resources> <Style TargetType="{x:Type igDP:DataRecordCellArea}"> <Setter Property="BackgroundHover" Value="Transparent"/> <Setter Property="BackgroundSelected" Value="Transparent"/> <Setter Property="BackgroundActive" Value="Transparent"/> <Setter Property="BorderActiveBrush" Value="Transparent"/> <Setter Property="BorderHoverBrush" Value="Transparent"/> <Setter Property="BorderSelectedBrush" Value="Transparent"/> </Style> <Style TargetType="{x:Type igDP:CellValuePresenter}"> <Setter Property="BackgroundHover" Value="Transparent"/> <Setter Property="BackgroundSelected" Value="Transparent"/> <Setter Property="BackgroundActive" Value="Transparent"/> <Setter Property="BorderActiveBrush" Value="Transparent"/> <Setter Property="BorderHoverBrush" Value="Transparent"/> <Setter Property="BorderSelectedBrush" Value="Transparent"/> </Style> </igDP:XamDataGrid.Resources>
This way there won’t be any highlight of the Cells or the Records. Please let me know if this helps you or you need further assistance on this matter.
Looking forward for your reply.