What would 'items' contain? The names of the columns? Okay, assuming they'd contain names of the columns, I would create an empty DataGrid first and then add columns to it, like this:

<mx:DataGrid initialize="setUp(event.target)" />

function setUp(grid):Void
{
for (... i in 'items' ...) // pseudocode
{
var col:DataGridColumn = new DataGridColumn();
col.columnName = i.columnName;
col.headerText = i.headerText;
grid.addColumn(col);
}
grid.dataProvider = myRemoteObjectDataProvider;
}

Manish

[EMAIL PROTECTED] wrote:
Hi,

I have this java pojo class
...
private String cod_art;
private String dsc_art;
private Vector items;
...

i wish display in my DataGrid Vector items will be column and my cod_art, and dsc_art the rows, i don't know how to implements because my remoteObject return 1 dataProvider?
Can you help me
Devis





Yahoo! Groups Links












Reply via email to