Initial ListGrid Data

Hi,

Is there a way to reference the ListGrid data before it is loaded into the object?

for (i=0; mylistgrid.data.getLength(); i++) {
blah.. blah.. do something with the mylistgrid data
}

The above code is skipped the first time since there is no values in the .data attribute even though the listgrid.show() function was called just before my function is called.

Am I missing something here?

Thanks.

use listgrid.redraw()

Thanks but not what I was looking for. I need to access the data that will be displayed on a listgrid before is actually drawn.

If your ListGrid is connected to a DataSource, data loads asynchronously. To be notified when data arrives, override or observe dataArrived() via ListGrid.dataProperties.