I am having a great deal of trouble setting individual header
properties in a DataGrid. I have tried multiple approaches with
this to no avail. Basically I am trying to highlight specific
columns with a different color to differintiate them from lesser
If I declare a headerRenderer AND I declare a CSS
headerStyle, I can get a background color to appear. The problem
then is that there are margins all around the headerCellRenderer
that show the default HeaderRow colors of the DataGrid. Setting the
margins to 0 or not declaring them does not resolve this issue.
If I declare no headerRenderer AND I declare a CSS
headerStyle, nothing seems to take effects aside from text
formatting in the cell.
If I declare the headerStyle in the MXML and then set the
backgroundColor, it does nothing.
Is there any way to basically have different columns have
different HeaderCell backgroundColors. Maybe I have overcomplicated
this issue or simply overlooked something. Please help.
TIPLVinay, thanks for the info. Unfortunately that is not
what I was looking for.
I kinda figured out the first part of my issues with getting
different column headers to render different background images.
Instead of trying to use a style sheet to set the background
properties I just plugged a backgroundImage into the
HeaderCellRenderer.mxml itself. As for the sizing I came up with
this which aside from a small 1px border around the sides of the
headerCell, it expands fully. I just plug the constructor()
function on the initialize event.
The next thing I hope Flex 2 tackles is the customization of
the DataGrid in terms of having differetn color themes for certain
columns that the developer may deam as containing more important
than data in other columns. ie: columns 0-2 are the default color
scheme, columns 3-4 are highlighted so they have a different color
scheme, and then other columns follow suit based on their