How do I remove the row highlight when the mouse is moved over the grid?
Hello,
Thank you for your post. I have been looking through it and I created a sample project for you, where there is no highlight of the Records. Basically I copied the style for the DataRecordCellArea from: C:\Program Files (x86)\Infragistics\NetAdvantage 2011.1\WPF\DefaultStyles \DataPresenter\DataPresenterGeneric_Express.xaml file which is installed by default here and remove two animations from it. I suggest you do so in the future when you want to retemplate your controls in order not to lose any functionality. Please let me know if you need further clarifications on this matter.
Looking forward fort your reply.
Hi Stefan,
I'm arriving to this thread late with the same desire - to stop the highlighting or rows on hover.
I'm working with an older version of Infragistics as well - using version 20091.2056; writing in C#.
I also have to write to 3.5 for this project. I was not able to get your grid to render in my environment; getting error: Error 1 Event 'Selected' was not found in type 'DataRecordCellArea'. C:\Users\overeema\Documents\Visual Studio 2010\code imports\xamDataGridWithoutRowHighLight\xamDataGridWithoutRowHighLight\xamDataGridWithoutRowHighLight\MainWindow.xaml 240 7 xamDataGridWithoutRowHighLight
I tried doing as you suggest and copied in the xaml style for the datapresenter from the express file for my version hoping that I would be able to stop the highlighting and still keep the newer source that apparently eliminates a memory leak that exists in my version!
I was not able to keep that new bit of source without the selected issue returning so I reverted to my version entirely hoping that I would at least be able to deal with the highlighting issue by finding the lines you had commented out and doing the same in my version.
Unfortunately, I cannot seem to find the lines that you commented out. Everything that you have commented out in your version seems to be commented out in my version already unless it is something that is within the block that was commented out to address the memory leak.
Also, it doesn't appear you added any comments to the animations you removed.
Could you paste here the animations you removed so I can single them out in my version or is it a waste of time trying to do that with my version? If a waste of time, any other way of removing the highlighting on hover in my version that you know of?
Thanks,
Allen