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.
|
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!
|