all groups > flash data integration > september 2005 >
You're in the

flash data integration

group:

datagrid sort columns not rows



datagrid sort columns not rows Mgala
9/22/2005 12:00:00 AM
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>
Re: datagrid sort columns not rows Sean Rhea
9/22/2005 12:00:00 AM
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!
Re: datagrid sort columns not rows Mgala
9/23/2005 10:06:47 AM
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
AddThis Social Bookmark Button