2 Replies Latest reply on Nov 7, 2006 8:51 PM by Like2Flex

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

    Like2Flex
      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.