PDA

View Full Version : [AS3] CS4 Datagrid addItem problem


paveloosha
11-08-2011, 11:04 AM
Hi guys, is it possible to addItem into a dataGrid like this?


var colNum = myDataGrid.getColumnAt(0);

myDataGrid.addItem({colNum:"my Item"})"


Is there any way to detect column dynamically and input data into that?

Thanks in advance.

solisarg
11-14-2011, 01:06 PM
Usually you use objets with properties, if the column is the property name, you use

myDataGrid.addItem({Name:"Peter"})"

Jorge