Welcome Guest Search | Active Topics | Sign In | Register

Custom Row Colors in Grid Options
cliff
Posted: Saturday, June 14, 2008 9:16:58 AM
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.
eo_support
Posted: Saturday, June 14, 2008 9:26:17 AM
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.html

That 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.html

Hope this helps.

Thanks


You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.