flash data integration:
Hi, I am filling a datagrid via xml and the columns as not created in the order I have in my xml. I've also added them in the correct order in the schema in the datagrid. I want the order to appear as OrderID, CustID, Company, Items, AMT. But is shows as OrderID, Items, CustID, Company, AMT I've attached the 1st row of data from the xml. How do I set the correct order? Marty <?xml version="1.0"?> <results_packet> <rec OrderID="40000" CustID="13000" Company="Regular Insurance" Items="235" AMT="365" /> </results_packet>
You can add the columns programmatically to ensure they appear in the right order. For instance: dg.addColumn("OrderID"); dg.addColumn("CustID"); dg.addColumn("Company"); dg.addColumn("Items"); dg.addColumn("AMT"); Hope that helps!
Sean, Thanks. I'll keep this in my arsenal. What I did was add the fields to the dataset from the schema tab in the order I wanted. It did the trick. I am currently developing with code and visually. As I move to code this will be really helpful. Marty
Don't see what you're looking for? Try a search.
|