PDA

View Full Version : [AS3] Change datagrid's selectedUpSkin dynamically


MSLourens
12-18-2008, 12:49 PM
I am trying to change the selectedUpSkin of my datagrid dynamically, because at first the selectedUpSkin should be gray, and after a couple of actions it should become blue.
I tried to set the selectedUpSkin of the cellrenderer using this code:
datagrid.setStyle("Cellrenderer_selectedUpSkinBlue")
I copied the selectedUpSkin from the original cellrenderer, which comes with the datagrid, changed the color, changed the export name in Cellrenderer_selectedUpSkinBlue. But nothings happens, it remains gray, the color of the original Cellrenderer_selectedUpSkin.

What am I doing wrong here?