OK, but I would think your solution would have to be data-driven on not 
event-driven.  Even header renderers get recycled and will need to recompute 
the style on the fly.

From: [email protected] [mailto:[EMAIL PROTECTED] On Behalf Of 
cjcuccaro
Sent: Saturday, September 13, 2008 4:33 PM
To: [email protected]
Subject: [flexcoders] Re: Trying to underline datagrid header text. How???


I believe I got it. I use the added sortEventHandler event listener
to set the style textDecoration to none and the clickHandler to reset
the textDecoration to underline.

private function sortEventHandler
(event:DataGridEvent):void
{
if (event.itemRenderer == this){
event.preventDefault();
}
setStyle("textDecoration", "none");
}

private function clickHandler(event:MouseEvent):void
{
setStyle("textDecoration", "underline");
}

and it took me way to many hours to come to this conclusion. yikes!

Thanks for your input Alex, it is greatly appreciated.

Regards,
CJ

--- In [email protected]<http://www.jalanraya.net/index.php?option=com_content&task=view&id=84&Itemid=1>





-- 
<Redd Cyser B 6193 KPL>
REDUCE SPEED, MAKE WAYS FOR SAFETY !
http://www.jalanraya.net/
http://gueandry.blogspot.com/
http://redd.dagdigdug.com/
----------------------------------------------

--~--~---------~--~----~------------~-------~--~----~
Anda tergabung dalam milis Indosat Bikers Community (InBike)
-----------------------------------------------------------------------------------------------
We moderators work for free only for your convenience in our milis.
Help us and obey the rules or be gone!
-----------------------------------------------------------------------------------------------
Untuk mendaftar kirim email data diri ke [EMAIL PROTECTED]
Untuk keluar milis kirim ke [EMAIL PROTECTED]
Untuk mengirim ke milis email ke [email protected]
http://www.inbike.org
http://inbike-2006.fotopic.net
http://inbike.multiply.com
-~----------~----~----~----~------~----~------~--~---

Kirim email ke