You set a ClassFactory to the columns itemEditor property.
Via actionscript...

var cf:ClassFactory;
cf = new ClassFactory(mx.controls.ComboBox);
theColumn.itemEditor = cf;

Or mxml...

<mx:DataGridColumn>
  <mx:itemEditor>
    <mx:Component>
        <mx:ComboBox/>
    </mx:Component>
  </mx:itemEditor>
</mx:DataGridColumn>



--- In flexcoders@yahoogroups.com, "Fidel Viegas" <[EMAIL PROTECTED]>
wrote:
>
> Hi All,
> 
> I am trying to implement a DataGrid with one of the columns as a
> ComboBox. The thing is that I want to show a label with an icon when
> the column is in a normal (non editable state), and show the combo box
> when the user clicks the column to edit it.
> 
> Does anyone have an example or some tips on how to achieve this?
> 
> Thanks in advance,
> 
> Fidel.
>


Reply via email to