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

Data bound row style

1 Answer 38 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Jan
Top achievements
Rank 1
Jan asked on 19 Aug 2010, 01:59 PM
Hello, 
I need to have rows in my grid colored differently depending on data that they show.
For instance, the object bound to a row has property "IsBlue". If the IsBlue= true, I want a row to be colored blue. How can I achieve this?
Thanks.

1 Answer, 1 is accepted

Sort by
0
Maya
Telerik team
answered on 19 Aug 2010, 02:04 PM
Hello Robert Lukkenaer,

 
You may use StyleSelectors or DataTemplateSelectors and depending on your custom logic to apply a different style/template for every single row or cell. 
You can find online examples for both Style and DataTemplate Selectors in our demos.

Kind regards,
Maya
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
Tags
GridView
Asked by
Jan
Top achievements
Rank 1
Answers by
Maya
Telerik team
Share this question
or