--- In [email protected], "reflexactions" <[EMAIL PROTECTED]> 
wrote:
>
> Before I reinvent the wheel has anyone tried this?
> 
> tks...
>

This is a quick cut&paste from a component I've been working on lately ...

public function init():void{
   var columnsAr:Array = []
   columnsAr.push(new DataGridColumn('c1') )
   columnsAr.push(new DataGridColumn('c2') )

   var cf:ClassFactory = new ClassFactory( DataGrid );
   cf.properties = { showHeaders:false,  labelField:'c1', columns:columnsAr }
   cg.dropdownFactory = cf;
   cg.dataProvider=dp
   cg.labelField='c1'
   cg.dropdownWidth=cg.width*2  
}

<mx:ComboBox id='cg' />

Reply via email to