2 Replies Latest reply on Aug 29, 2007 8:41 PM by hylim

    Changing text color of item renderer in datagrid

    hylim
      Hi,

      I have the following datagrid:
      <mx:DataGridColumn field="name" ......... />
      <mx:DataGridColumn itemRenderer="myRenderer" ...... />

      In myRenderer, I extend from the TextInput class; with the text color:WHITE

      My question is:
      When I do a mouse rollover/selection on any row of the datagrid, how can I change the text color of my renderer?
      If I add the rollover/selection event listener for my renderer, it will only change the color when my mouse is over its column.
      I want it to change colour whenever the row is selected/ rollover.

      Thank you very much.

      Regards,
      hy