0 Replies Latest reply on Apr 9, 2010 7:03 AM by Shirker1

    DataGrid ItemEditor ComboBox Usage

    Shirker1 Level 1


      With the following code:


      <mx:DataGrid width="100%"  id="itemsGrid" alternatingItemColors="[#DDDDDD,#FFFFFF]" editable="true"
                  paddingBottom="0" paddingLeft="0" paddingTop="0" paddingRight="0" height="100%"
                  dataProvider="{gridData}"  itemEditEnd="doValidation(event)"  >
                      <mx:DataGridColumn  id="col1" headerText="Codigo"  width="40" dataField="code"
                           editable="true" headerStyleName="gridHeader"   >
                             <mx:itemEditor  >
                              <mx:Component >
                                  <mx:ComboBox  dataProvider="{outerDocument.itemsArray}" editable="false" 
                                       alternatingItemColors="[#FFFFFF, #FFFFFF]"   
                                       change="outerDocument.col1ChangeEvt(event)"   />



      Every time I click on the comboBox  the value from the gridData that populates the itemsGrid is blanked out.

      How can I set the selectedRow of the ComboBox or another way to match the comBox selected Data Provider

      withe the DataGrid provider?