nevermind i got it, for everyone else it's just
<mx:DataGridColumn id="cff" headerText="CFF UID"
headerRenderer="MyHeaderRenderer" textDecoration="underline"
dataField="cffUid" width="100" />
On 1/22/08, Dominique Bessette - Halsema <[EMAIL PROTECTED]> wrote:
>
> so in the datagridcolumn i do
>
> headerRenderer="{header.getStyle('textDecoration')}"
>
>
> On 1/19/08, Alex Harui <[EMAIL PROTECTED]> wrote:
> >
> > I put together a test case and found that it is a known bug in 2.x.
> > I would workaround it with a custom header renderer. Here's the one I used.
> >
> >
> > package
> > {
> >
> > import mx.controls.dataGridClasses.DataGridItemRenderer;
> >
> > public class MyHeaderRenderer extends DataGridItemRenderer
> > {
> >
> > public function MyHeaderRenderer()
> > {
> > super();
> > }
> >
> > override public function getStyle(styleProp:String):*
> > {
> > if (styleProp == "textDecoration")
> > return "none";
> >
> > return super.getStyle(styleProp);
> > }
> >
> > }
> >
> > }
> >
> > ------------------------------
> > *From:* [email protected] [mailto: [EMAIL PROTECTED]
> > *On Behalf Of *Tracy Spratt
> > *Sent:* Friday, January 18, 2008 10:39 AM
> > *To:* [email protected]
> > *Subject:* RE: [flexcoders] Flex 2 underline in datagrid
> >
> >
> >
> > Modify DataGridItemRenderer.as?
> >
> > ------------------------------
> >
> > *From:* [email protected] [mailto:[EMAIL PROTECTED] *On
> > Behalf Of *dominique.bessette
> > *Sent:* Friday, January 18, 2008 12:15 PM
> > *To:* [email protected]
> > *Subject:* [flexcoders] Flex 2 underline in datagrid
> >
> > does anyone know how to underline in a datagrid without underlining
> > the header? I've tried to use textDecoration="underline" in the
> > datagridcolumn and then use a headerStyleName="headerStyle" where
> > textDecoration: none in the <mx:Style> tag, but it's not working.
> > For some reason Flex 2 doesnt recognize textDecoration in the style
> > tag, but it does in the data grid column.
> >
> > Thanks
> >
> >
> >
>
>