Grid populating columns in alphabetical order (which I don't want)

Hi,
Am populating a grid from an array defined in my CFC function
in coldfusion.
My flex function is as follows:
public function getOrders(event:ResultEvent):void{
ords = event.result as ArrayCollection;
grd.dataProvider = ords;
The grid is populating nicely without any error. BUT it is
populating in alphabetical order.
That is, if in my query I do:
"select B,D,C,A from tbltest..."
It is populating the grid columns as "A", "B", "C" and "D"
(in alphabetical order).
Any idea, how do I do it to obtain in the order i want , as
"B","D", "C" and "A".
Thx for your precious help.

You will need to specify DataGridColumn tags to define the3
column order.
I might be wrong, but I do not think the default order of the
columns is alphabetical. Rather, it is the reverse of the order
which the columns are added to the columns array.
At any rate, the only ways to create reliable column order is
to use DataGridColumns or to build the columns programmatically.
Tracy

Similar Messages

Maybe you are looking for

  • Can I install windows 8/8.1 with bootcamp 4?

    Hi, I have a iMac from late 2009 with an intel core 2 duo cpu,According to the apple website I can only install upto win7 on bootcamp 4 & bootcamp 5 in incompaticable. Is there any way I can run win8.1 on my imac without using such softwares as paral

  • Is it possible to scan without preview/ image capture??

    These programs are useless for scanning. Every time I try to scan something it automatically guesses where the image is cropped. It gets it wrong almost every time and there is no way of turning it off. I tried clicking the more details button but my

  • TS1717 Im new to itunes so this might be a simple answer but...

    Im new to itunes so this might be a simple answer but...I downloaded 20 songs a few days ago and the last 45-60 second ds of more than half didn't download. When playing the song it will kirt move to the next song. How can I get it to download again

  • Performance Issue in MIRO Transaction

    Dear All, Our end user has been complaining of MIRO taking too much time to pass an entry. What could be the reason behind the same?? Please suggest possible solutions. Regards, Alok.

  • Search help question

    Hi, I have a selection screen with 3 fields. xblnr, kunnr and bukrs I created a search help exit for xblnr. It finds my values perfectly and returns it on screen. How do I make it return kunnr and bukrs values on the screen as well(they do appear on