CodeCharge Studio
search Register Login  

Web Reporting

Visually create Web Reports in PHP, ASP, .NET, Java, Perl and ColdFusion.
CodeCharge.com

YesSoftware Forums -> CodeCharge Studio -> General/Other

 Specifying sort order in code what event?

Print topic Send  topic

Author Message
CodeChargenewbie

Posts: 114
Posted: 05/14/2008, 7:51 AM

I need to specify the sort order in custom code of a grid control. How may I do this and what event is appropriate (i.e. beforeshow)?

Thank you.
View profile  Send private message
mamboBROWN


Posts: 1713
Posted: 05/15/2008, 6:26 AM

CodeChargenewbie
We need more information about the data that you are trying to sort. What are you SQL/Table fields? Are you putting the grid in alphabetical order or do you want to use a custom order??

You could probably control the order of the grid through the data source, unless you have another reason for wanting to wait until before you show the grid.
View profile  Send private message
DaveSause

Posts: 14
Posted: 05/15/2008, 10:23 AM

so why not just put an order by in your SQL statement?

you can specify only the order under the SQL page properties in code charge, but that only for a single field sort ascending or descending, if you need more complex, use and order by.
_________________
Dave Sause
View profile  Send private message

Add new topic Subscribe to topic   


These are Community Forums for users to exchange information.
If you would like to obtain technical product help please visit http://support.yessoftware.com.

Web Database

Join thousands of Web developers who build Web applications with minimal coding.
CodeCharge.com

Home   |    Search   |    Members   |    Register   |    Login


Powered by UltraApps Forum created with CodeCharge Studio
Copyright © 2003-2004 by UltraApps.com  and YesSoftware, Inc.