Rank: Newbie Groups: Member
Joined: 6/14/2008 Posts: 1
|
Is it possible to change row colors using code-behind after binding? For example, I would like row 1 to be green, row 2 to be yellow, and row 3 to be red.
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,221
|
Hi, You can not set the color directly. You can change it indirectly through the GridItem's StyleSetID property: http://www.essentialobjects.com/ViewDoc.aspx?t=EO.Web.GridItem.StyleSetID.htmlThat means you need to define multiple GridItemStyleSet objects, and then you can pick which one an item use. You can find more information on how styling works at here: http://www.essentialobjects.com/ViewDoc.aspx?t=Grid%2fstyling.htmlHope this helps. Thanks
|