Zedan

I suggest you to take a look at the Flex cookbook, If I'm not wrong already
has a solution for that.
But if Not, just take a look at the Flex Style Explore and use the Class of
StyleManager to do that.
for example:

public function setHeaderBack():void
{
     myGrid.setStyle("backgroundColor",0x990044);
}

then in the datagrid just put a datagrid Event click handler.

Isn't a best decribe for your problem just point you out on that.


Best.

On 1/18/07, zedan_gu <[EMAIL PROTECTED]> wrote:

  I*m attempting to add a background color for datagrid header when user
clicks the header to sort the data, to indicate which column was
sorted, how can I achieve this?
I want to get the header which user click, and then set it*s
background color style, but I can*t get the header, getChildAt() ? No
use, Flex 2 Help document is helpless for me about this issue.
Any suggestions would be greatly appreciated




--
----------------------------
Igor Costa
www.igorcosta.org
www.igorcosta.com
skype: igorpcosta

Reply via email to