Search code examples
apache-flexdatagridcoding-styleskin

Anyway to change the style of datagrid?


I am trying to change the header color and the row color of the datagrid. Apparently, its not a spark component so can't apply skin on it. Anyone knows how to style it? Thanks.


Solution

  • http://docs.huihoo.com/flex/4/mx/controls/DataGrid.html#styleSummary

    headerBackgroundSkin headerColors headerDragProxyStyleName headerSeparatorSkin headerStyleName

    I'm pretty sure the header is a button, so by using the headerStyleName you should be able to specify any button style.