1 Reply Latest reply on Mar 6, 2008 1:26 PM by Gaurav J

    problem using classreference with setstyle

      I'm building a custom datagrid and having trouble setting the headerbackground skin style programatically

      Here's what it look like in css:

      headerBackgroundSkin: ClassReference('skins.DataGridHeader');

      and here's how I'm trying to set the style in AS

      dataGrid.setStyle("headerBackgroundSkin", "skins.DataGridHeader");

      this give me an error, I've tried storing "skins.DataGridHeader" in a variable types as class but still doesn't seem to work. Any help would be appreciated.

      Text Text