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

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.

Thanks,
Gaurav Verma


snapshot_e75db2ff.zip

1 Reply

RG Rajasekar G Syncfusion Team 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.


Sample:
SyncGDC_94812.zip

 
Please let us know if you have any queries.

Thanks,
Raja sekar.G


Loader.
Up arrow icon