PDA

View Full Version : Data Grid issue


BrettAF3D
04-11-2006, 02:01 AM
I need to show different data grids depending on the user inputs, my question is :

Should i use different swf file with the different Data Grid to be loaded or can i change the columns and the data provider of one Data Grid at runtime ? :confused:

vic76
04-11-2006, 10:25 PM
Hi Brett,

This can be done dynamicly.
Supose the users provides some input that's stored as:

var myInput = userInput.txt.text;

then you can simply add this to your datagrid with:

yourDatagrid.addItem (myInput);

Regards,
Vic