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:[EMAIL PROTECTED] 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
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

 

Reply via email to