2 Replies Latest reply on May 7, 2008 4:53 PM by pfff...

    Changing the color of text in the DataGrid cell conditionally

      I am using a DataGrid in my application and my requirement is to change format and style of data value in the DataGridColumn per below:
      If the data value is a negative number
      1. change the color of a value to red
      2. remove the '-'ive sign
      3. include the value between in parenthesis.
      I was able to accomplish 2 & 3 in the labelFunction for the DataGridColumn. But have been struggling to accomplish (1) within the label function.

      Can this be done in the labelFunction? I am using Flex 2.0.1.

      Appreciate any help with this.