I'm not sure I understand the question. All columns are going to use the dataProvider on the DG.
If one of your things is a ComboBox and has a dataprovider of its own, you can assign the dataprovider in the classFactory's properties bag or subclass dgc.itemRenderer = new ClassFactory(ComboBox); dgc.itemRenderer.properties = { dataProvider: [ 'yes', 'no', maybe' ] } newCols.push(dgc); Make sure you're assigning itemRenderer and not itemEditor, otherwise the renderer will show up only when editing. ________________________________ From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of [p e r c e p t i c o n] Sent: Tuesday, February 26, 2008 10:33 PM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] adding columns to datagrid programmatically thanks much...more questions... how do you set the event handlers and data providers of these... and one last thing... i've put a checkbox in one column, but it only shows up after i attempt to edit...how do i fix this? thanks again cheers percy On Tue, Feb 26, 2008 at 9:29 PM, Alex Harui <[EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]> > wrote: var newCols:Array = new Array(); var dgc:DataGridColumn = new DataGridColumn() dgc.dataField = "someProperty"; dgc.itemRenderer = new ClassFactory(LinkButton); newCols.push(dgc); var dgc:DataGridColumn = new DataGridColumn() dgc.dataField = "someProperty"; dgc.itemRenderer = new ClassFactory(NumericStepper); newCols.push(dgc); ... dg.columns = newCols; ________________________________ From: flexcoders@yahoogroups.com <mailto:flexcoders@yahoogroups.com> [mailto:flexcoders@yahoogroups.com <mailto:flexcoders@yahoogroups.com> ] On Behalf Of [p e r c e p t i c o n] Sent: Tuesday, February 26, 2008 9:06 PM To: flexcoders@yahoogroups.com <mailto:flexcoders@yahoogroups.com> Subject: [flexcoders] adding columns to datagrid programmatically dear gurus and other experts... how does one add columns to a datagrid programmatically...and also how so i make editable right inside the grid? for example what if i wanted to have a column with a hyper link another with a numeric stepper another with a text input... thanks percy