views:

1429

answers:

1

Hi Everyone,

Does anyone know how to change the rowcount of a datagrid in flash after it has been created on the stage.

I am loading an xml file externally that contains the number of rows the datagrid should have, but the problem is that becuase this file is not loaded at runtime, it just picks the default 3 items. Maybe I have to reload the datagrid on the stage, or loop until it is defined.

Does anyone have experince of this.

Regards,

Chris

A: 

Are we talking Flash or Flex? If we're talking Flex you can actually just use DataBinding. Just place the [Bindable] attribute above the variable that contains your XML and when you update your variable with new data, the grid will be updated too.

If you really do mean Flash, then I've got no clue.

Justin Bozonier