This is a migrated thread and some comments may be shown as answers.

HighlightColor

1 Answer 111 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Rieni De Rijke
Top achievements
Rank 1
Rieni De Rijke asked on 16 Nov 2011, 11:55 AM
I'm using the GridView and also themes.
How could I get the used highlight-color which is used for the selected row in codebehind?

Somethin like this:
var color = MyGrid.HighlightColor;

1 Answer, 1 is accepted

Sort by
0
Ivan Ivanov
Telerik team
answered on 16 Nov 2011, 12:23 PM
Hi Rieni De Rijke,

This brush is not exposed in RadGridView's API through a property. In order to access it at runtime, you will have to find the respective border in the visual tree an check its Background property, like illustrated in the attached project. However, I would not advise you to modify it at runtime. Would you please shed some more light on what exactly you are trying to achieve, so that we could give you some guidelines?

All the best,
Ivan Ivanov
the Telerik team
Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>
Tags
GridView
Asked by
Rieni De Rijke
Top achievements
Rank 1
Answers by
Ivan Ivanov
Telerik team
Share this question
or