I am using a mx:DataGrid component in my flex application. I showing a grid like this:

I want to change the selected Blue color to transparent. I am using following code:
<mx:DataGrid id="dg" dataProvider="{arrDg}" width="100%" height="100%"
draggableColumns="false" rowCount="{arrDg.length}" click="dgClickHandler(event)"
variableRowHeight="true" resizableColumns="false" sortableColumns="false"
selectionColor="#00000000" verticalScrollPolicy="off">
But this is changing the color to black instead of transparent.
Please help.
[Edit[
Oops, didn’t notice you had 8 zero’s in that color. Flash doesn’t support RGBA (or color values with alpha/transparency).
[end edit]
If you do not want any highlight at all to be shown on selection, try setting the selectable property of the (mx)
DataGridtofalse. It seems you have a click handler, turning off selection is likely to prevent your click handler from doing it’s job 🙁If you do want some sort of selection indicator, but say, want to modify the alpha (transparency) of the selection color, that style setting does not exist (ie: there is no “selectionAlpha” style). You would have to create a custom data grid class to do that.