To set the style to bold, you will most likely want to do
item.setStyle("fontWeight", "bold");
(I have not tested it specifically on this object type, but that is what
it would be on any object that does support it).
When do you need to set rows to bold? Does it always happen as soon as
the dataprovider is set/the grid shows data? Then you should go the
custom cell renderer rout. Then you can do anything you want to each
cell, including display objects other than strings.
Hope that helps!
|<
Karl Johnson
Cynergy Systems, Inc.
http://www.cynergysystems.com
-----Original Message-----
From: [email protected] [mailto:[EMAIL PROTECTED] On
Behalf Of Ryan Pieszak
Sent: Friday, April 14, 2006 9:32 AM
To: [email protected]
Subject: [flexcoders] Flex2 Beta2 - Looping through dataGrid to bold
cells
Hello all, if there's a better way to do this, please let me know. I'd
prefer not to loop everytime the grid is refreshed.
So, if I'm trying to bold certain cells based on their value (by
looping), these are the problems I'm having...
1) I can't find a property that holds the total row count of the grid to
use as the number to loop through.
2) I thought this was the way to bold the text, but I can't get it to
work...
my_Grid.columns.my_Column[row_number].fontWeight="bold";
Thanks guys.
Ryan
--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives:
http://www.mail-archive.com/flexcoders%40yahoogroups.com
Yahoo! Groups Links
--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/
<*> To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/