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

Change backgroundcolor, foregroundcolor in C#

1 Answer 45 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Rene
Top achievements
Rank 1
Rene asked on 16 Sep 2008, 07:29 AM
How can i change the backgroundcolor and foregroundcolor of a row in C#?

For example i have a grid with two columns Personname and Country
all rows with country xxx should be red and the foregroundcolor should be blue

1 Answer, 1 is accepted

Sort by
0
Atanas
Telerik team
answered on 16 Sep 2008, 09:44 AM
Hello Rene,

We have an example in the desktop version of our Quick-Start Framework has that demonstrates a similar functionality. In the Conditional Row Formatting example we use a XAML based binding and a Value Converter to change the background property of our rows depending on a predefined criteria.

Please, check it out and don't hesitate to contact us if you have further questions.

Regards,
Atanas
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
Tags
GridView
Asked by
Rene
Top achievements
Rank 1
Answers by
Atanas
Telerik team
Share this question
or