Sanjay, thanks.
I am sorry for my bad description, I just want to change the header
back ground color in column which user clicks, but not all headers of
all columns.

--- In [email protected], "sanjaypmg" <[EMAIL PROTECTED]> wrote:
>
> Zedan,
> 
> you can change background and header color of dataGrid by using the 
> following in css:
> 
> DataGrid {
>    backgroundAlpha: 0.5;
>    backgroundColor: #0000cc;
>   headerColors: #ffcc00, #ff9900;
> }
> 
> Regards,
> Sanjay
> 
> --- In [email protected], "zedan_gu" <zedan_gu@> wrote:
> >
> > Igor Costa, thanks for help, but I just want to set the column
> > header's bgcolor which user clicks, no the datagrid bgcolor, other
> > help? Thanks 
> > --- In [email protected], "Igor Costa" <igorcosta@> wrote:
> > >
> > > 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 <zedan_gu@> 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