3 Replies Latest reply on Jul 24, 2007 5:44 PM by ntsiii

    Trouble with listdata and itemrenderer

      I'm reading my data in from an xml file, then have the create the columns and data for my datagrid from that. I've created an itemrenderer that is an HBox, however do not know how to access the datafield for each item to put within a text area. I've seen that I should use a IDropInListItemRenderer and somehow access the listdata from there but am somewhat lost as to how to do this.

      My itemrenderer control is below:

      <?xml version="1.0" encoding="utf-8"?>
      <mx:HBox xmlns:mx=" http://www.adobe.com/2006/mxml">
      <mx:Canvas cornerRadius="4" borderColor="#999999" borderStyle="solid" height="90%">
      <mx:Text text="HELLO" />

      It's pretty basic, but I cannot figure out what to add to allow the actual text to be the value of the datafield for that column in my datagrid. Any help would be great!