1 Reply Latest reply on Jan 15, 2007 11:48 AM by FlightGuy

    unable to bind to property

    187_2007 Level 1
      Here is a snippit from my main.MXML.

      <mx:DataGrid id="StructGrid" dataProvider="{ArrayofStructs}" x="322" y="293" editable="true" itemEditEnd="processData1(event);">
      <mx:columns>
      <mx:DataGridColumn headerText="Name" dataField="NAME" />
      <mx:DataGridColumn headerText="Last Name" dataField="LASTNAME" />
      <mx:DataGridColumn headerText="Age" dataField="AGE" />
      <mx:DataGridColumn headerText="Sex" dataField="SEX" itemEditor="valueObjects.HumanSex" sortable="false">
      <mx:itemRenderer>
      <mx:Component>
      <mx:Text selectable="false" width="100%" text="{data.SelectedSEX}"/>
      </mx:Component>
      </mx:itemRenderer>
      </mx:DataGridColumn>
      </mx:columns>
      </mx:DataGrid>


      Here is my HumanSex.mxml:

      <mx:VBox xmlns:mx=" http://www.adobe.com/2006/mxml" width="400" height="300">

      <mx:ComboBox id="comboBox" selectedItem="{data.SelectedSEX}">
      <mx:dataProvider>
      <mx:String>Male</mx:String>
      <mx:String>Female</mx:String>
      <mx:String>Other</mx:String>
      </mx:dataProvider>
      </mx:ComboBox>
      </mx:VBox>



      Why do I keep getting this waring when I am running in Debug?

      unable to bind to property 'SelectedSEX' on class 'Object' (class is not an IEventDispatcher)