1 person found this helpful
For MX DataGrid, you have to override drawHighlightIndicator
Okay, now I'm trying to make the same datagrid using the new spark component. I've watched videos and am editing the datagrid skin just fine, which meets most of my needs.
Where I'm getting confusing is how to skin the header? I need to change the background of the header (including a graphic that runs along the entire columnheadergroup/bar). Do I have to create, duplicate or overrider the GridColumnHeaderGroup or GridItemRenderer? Can it be done by simply modifying anything in the DataGrid skin?
You will need to modify the DefaultGridHeaderRenderer (or roll your own). You can set it as the "headerRenderer" skin part for the DataGrid (you'll see it in the <fx:Declarations> section of the default DataGridSkin).
For the background, I'd probably put that in the DataGridSkin itself and make the header renderers transparent enough for it to show through.