Welcome Guest Search | Active Topics | Sign In | Register

int fields and StyleSetIDField Options
Stewart
Posted: Friday, July 23, 2010 7:21:00 AM
Rank: Newbie
Groups: Member

Joined: 6/27/2010
Posts: 6
Hi - I am trying to use the StyleSetIDField to set the style of rows based on a statusId field. If I use status description, that works fine but that could change whereas status id is constant. However I get an error 'cant convert int to string'. I have the same problem with a bool field where I want to show InActive rows ad grey. Is there some setting I am missing here?

Thanks,

Stewart.
eo_support
Posted: Friday, July 23, 2010 8:00:37 AM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,194
Hi,

That is normal. StyleSetIDField should always be a string field. The Grid uses the value of that field as key to find the corresponding GridItemStyleSet object and then apply that style set to the item. Alternatively, you can also set a column's StyleField property to format a column. When StyleField is set, the Grid interprets the value of that field (again a string value) as a CSS class name and applies that CSS class on the Grid cell.

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.