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