Sign In  Sign Up Live-Chat

Field Order of "Available Fields"

Last post 04-17-2008, 6:02 AM by saqib.razzaq. 1 replies.
Sort Posts: Previous Next
  •  04-16-2008, 7:58 AM 122572

    Field Order of "Available Fields"

    How do you set the order the "Available Fields"? They are not in alphabetic order they are also NOT in the order of the SQL Select statement. How do you set them?
    This message was posted using Aspose.Live 2 Forum
     
  •  04-17-2008, 6:02 AM 122754 in reply to 122572

    Re: Field Order of "Available Fields"

    Hi,

    There is a property "SortFieldsOnLoad" of the AdHoc control. If you set it to true (which is default), the fields will be sorted by field names. And if you set it to false, fields will come in the order of the Select query.

    And if you set it to false and use "Select *", the fields will come in the physical order of database table (data source).


    Best Regards,

    Saqib Razzaq
    Support Developer
    Aspose Guangzhou Team

     
View as RSS news feed in XML