6/7/2010 12:05:38 AM
Title:
AdvancedDatagrid column group problem
i have XML in e4x format like,
<List>
<ListValue number="10" storenumber="1" storename="xyz" value1="12" value2="45" />
<ListValue number="11" storenumber="2" storename="abc" value1="4737" value2="56" />
</List>
i have to create advanced datagrid dynamically like,
number storenumber storename value1 value2
value value
10 1 xyz 12 45
11 2 abc 4737 56
here value1 value2 is not fixed two columns..it can extend to value3 also..i want to make every value1,value2,value3 column as AdvancedDatagridColumnGroup. and vaue as AdvancedDatagridColumn.
Can anyone give me code for this..im struck with this from one week...
Thanks in advance:)
6/7/2010 11:48:43 AM
On this link you can find a good example to create columns dynamically
http://www.cflex.net/showFileDetails.cfm?ObjectID=553
6/7/2010 12:11:10 PM
check this link to populate advanced dataGrid using e4x xml from httpservice. You can set the colums array for datagrid and modify it later to increase or decrease the number of columns in a advanced datagrid
http://cookbooks.adobe.com/post_Populating_an_AdvancedDataGrid_from_an_XML_file_us-11686.html