hi all

I've got a datagrid where I'll have columns of ComboBoxes, populated
with dynamic data (look-up tables really).

sure I can assign a DataGridColumn's itemRenderer to a custom control,
but if I want to re-use that control, how do I pass a different
dataProvider to it?

in other words:

having these controls
<my:ComboBox dataProvider="{colRole}" y="100"></my:ComboBox>
<my:ComboBox dataProvider="{colEvalType}" y="120"></my:ComboBox>

as itemRenderers
<mx:DataGridColumn headerText="Role" itemRenderer="custom_controls.ComboBox"/>
<mx:DataGridColumn headerText="Type" itemRenderer="custom_controls.ComboBox"/>

or is this a dumb idea and there's a better way?

thanx
barry.b


--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/flexcoders/

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 



Reply via email to