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!!
|
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!
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,194
|
Great. Thank you very much for the update!
|