We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

CurrentCell shows different color than the RowBackground color set for the highlighted row

Thread ID:





103605 May 16,2012 10:47 AM UTC May 25,2012 04:48 AM UTC WPF 1
Tags: GridControl
Gaurav Verma
Asked On May 16, 2012 10:47 AM UTC

As suggested by the Support team to rewrite the post due to some technical issue I am writing this again and again.

When I select a row in the GridDataControl it highlights the selected cell that has a different background color which I have specified for the selected row. I want to disable this functionality and show the same background color though out the selected row. The VisualStyle is set to "Office2010BlackStyle"

Please suggest.

Gaurav Verma


Rajasekar G [Syncfusion]
Replied On May 25, 2012 04:48 AM UTC

Hi Gaurav,

We have analyzed your query and you can achieve your requirement by using the following code changes.

Code Snippet:

       this.dataGrid.ModelLoaded += (s, args) =>
                this.dataGrid.ShowCurrentCell = false;
                this.dataGrid.StyleManager = new GridDataStyleManager()
                    RowAppearence = new RowAppearence()
                        CurrentCellSelectionBackground = this.dataGrid.Model.GridVisualStyle.HighlightSelectionBackground,
                        CurrentCellSelectionForeground = this.dataGrid.Model.GridVisualStyle.HighlightSelectionForeground,


We have  prepared a sample based on this and its download from the below location.


Please let us know if you have any queries.

Raja sekar.G


This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Please sign in to access our forum

or the page will be automatically redirected to sign-in page in 10 seconds.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon