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

Highlight some rows based on the condition when creating the grid view

1 Answer 89 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Mengjie
Top achievements
Rank 1
Mengjie asked on 25 Feb 2016, 12:17 AM
I know gridview can highlight the row by selection. Is that possible to highlight some rows based on some conditions(for example name==john will be hightlight) when create the data grid view and this will not related with the selection. How should I set this? Thanks very much for anyone can help

1 Answer, 1 is accepted

Sort by
0
Dilyan Traykov
Telerik team
answered on 26 Feb 2016, 03:34 PM
Hello Mengjie,

You can use RowStyleSelectors and apply a specific style to the row whenever a certain condition is met.
Please let me know whether this approach would work for you.

Regards,
Dilyan Traykov
Telerik
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 Feedback Portal and vote to affect the priority of the items
Tags
GridView
Asked by
Mengjie
Top achievements
Rank 1
Answers by
Dilyan Traykov
Telerik team
Share this question
or