0 Replies Latest reply on Apr 23, 2008 4:21 AM by trycold

    Passing data from datagrid to itemRenderer

    trycold Level 1

      I am using the same itemRenderer for couple of grids. The item renderer is a button which have an icon embed. What I want to do is change the icon based on wht grid it is called from. So if I define the icons in the main how do I pass it to the itemrenderer.

      <mx:DataGridColumn itemRenderer="view.showButton" width="60" />

      where showButton is:

      <mx:Button xmlns:mx=" http://www.adobe.com/2006/mxml" click="getStatus()"


      I want to change this icon