Skip to content
November 20, 2010 / edeustace

Transparent background on Flex DataGrid column with alternating alphas.

On my current project, we needed a Flex DataGrid that had a transparent column for the first column.

I’ve put a subclass of DataGrid together that has this. Currently it only supports making the first column transparent (as I was following the KISS principle). However it wouldn’t be too much effort to extend it to make it possible to choose any of the columns tranparent by adding a to the DataGrid.

Here’s a screen grab:

The source code and demo is here (just right-click to view source).
http://ed.eustace.net/flex_samples/transparent_dg/Main.html

The datagrid itself has comments to the functions that I needed to override to get it working. Hope its useful to others and if I get the time I’ll flesh it out – although I should probably check if the new Spark DataGrid in Flex 4.5 will support transparent columns.

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: