Or you could skin it and with something transparent.
On 23 Apr 2008, at 07:08, Alex Harui wrote:
Dude, that was four months ago! You could’ve asked again sooner.
Another approach may be to subclass, get the .header, getChildByName
(“headerBG”) and set its alpha=0
From: [email protected]
[mailto:[EMAIL PROTECTED] On Behalf Of dorkie dork from
dorktown
Sent: Tuesday, April 22, 2008 9:57 PM
To: [email protected]
Subject: Re: [flexcoders]Setting DataGrid header to transparent
I've been working on this for a while with no luck... can you
provide an example or some tips?
On Thu, Dec 27, 2007 at 6:53 PM, Alex Harui <[EMAIL PROTECTED]> wrote:
Override drawHeaderBackground?
From: [email protected]
[mailto:[EMAIL PROTECTED] On Behalf Of dorkie dork from
dorktown
Sent: Thursday, December 27, 2007 3:31 PM
To: [email protected]
Subject: [flexcoders]Setting DataGrid header to transparent
Is there a way to set the Datagrid header to transparent? I want to
set the header background fill to transparent and show a border
along the bottom of the column headers. Currently the CSS Design
View does not let me change the Datagrid header fill alpha.
Here is the code I am using:
<mx:XML id="xmlData" format="e4x">
<XML1>
<items>
<item name="item 1" enabled="true" column1="8:00PM" />
</items>
</XML1>
</mx:XML>
<mx:DataGrid x="10" y="71" dataProvider="{xmlData.items.item}">
<mx:columns>
<mx:DataGridColumn headerText="Name" dataField="@name"/>
<mx:DataGridColumn headerText="Column 1"
dataField="@column1"/>
<mx:DataGridColumn headerText="Edit" dataField="edit"/>
<mx:DataGridColumn headerText="Enabled"
dataField="@enabled"/>
</mx:columns>
</mx:DataGrid>