1

I have a Datagrid that already gets its data from a data provider, there is a column in the grid called priority. What i want to do is if the column priority contains the value high then in an empty column in the datagrid i want to insert and image , the image being inserted depending on the value of the column priority.

Any help would be much appreciated.

thanks Chris

1 Answer 1

2

You could do this using an itemRenderer. Check out this link for an example. Here's another quick example:

<mx:DataGridColumn width="30" editable="false">
  <mx:itemRenderer>
    <fx:Component>
      <mx:Canvas horizontalScrollPolicy="off">
        <mx:Image id="myImage" x="11" source="{outerDocument.MyPriorityImage}" visible="{data.Priority > 50}" includeInLayout="{data.Priority > 50}"/>
      </mx:Canvas>
    </fx:Component>
  </mx:itemRenderer>
</mx:DataGridColumn>
Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.