Welcome Guest Search | Active Topics | Sign In | Register

Applying styles Options
Laura
Posted: Wednesday, May 5, 2010 7:27:54 PM
Rank: Member
Groups: Member

Joined: 5/3/2010
Posts: 11
Hi there,

I was looking at the code for the demo Conditional Formatting-Cell Based, and i noticed that the way you applied the style is using applying the style to using rows. What i need to do is just applying a style to 4 of my 7 columns, and i think i shouldn't have to do something like "row["BalanceStyle"] = "negative_balance" since i dont need to condition any rows. Is there a simpler way in the code behind to just tell the whole columns to apply my style?
This is my code, but the style does not work.
<eo: Grid1...StyleSetIDField="StyleSet">
...
<eo:GridItemStyleSet StyleSetID="teststyle">...</eo:GridItemStyleSet>
...
<eo:StaticColumn HeaderText="Jan." StyleField="teststyle">
</eo:StaticColumn> //I just want this one whole column to apply the "teststyle" style.

P.S. My data is generated using a 2D array. Thanks!!
Laura
Posted: Wednesday, May 5, 2010 8:05:23 PM
Rank: Member
Groups: Member

Joined: 5/3/2010
Posts: 11
Hi there, i have figured out this question, which is adding a Cellstyle CssText in between the StaticColumns. That worked. Thanks!
eo_support
Posted: Wednesday, May 5, 2010 8:12:54 PM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,194
Great. Thank you very much for the update!


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.