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

style row on databind?

2 Answers 57 Views
GridView
This is a migrated thread and some comments may be shown as answers.
MattC2007
Top achievements
Rank 1
MattC2007 asked on 18 Feb 2010, 06:24 PM
I'm looking to apply a custom style to each of the rows in my datagrid, based on one of the values thats being binded. Could someone please provide an example of this?

2 Answers, 1 is accepted

Sort by
0
Accepted
Vlad
Telerik team
answered on 19 Feb 2010, 07:37 AM
Hi MattC2007,

You can use similar to this blog post approach.

Sincerely yours,
Vlad
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.
0
MattC2007
Top achievements
Rank 1
answered on 19 Feb 2010, 02:58 PM
That link was very helpful, thnx alot!

The RowLoaded event was just what I needed.. I was able to grab the rows data using e.Row.DataContext and determine the rows style from there..

Thanks
Tags
GridView
Asked by
MattC2007
Top achievements
Rank 1
Answers by
Vlad
Telerik team
MattC2007
Top achievements
Rank 1
Share this question
or