Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to sort grid box record when clicking the header?
Message
From
05/02/1999 18:30:47
 
 
To
05/02/1999 00:58:33
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00184218
Message ID:
00184590
Views:
20
>Hello,
> I use the Visual Foxpro 3 to 6.
> How to code the grid box, so that when I click one of the column header, the records will be sorted base on that column?
> My friends suggest me to build index for each column on the cursor. Is it the only way? If the grid box have 12 column, will I build 12 index?
> Can I code this function on grid level rather than cursor level?
>Thanks. :D
>-Jasper

Hi Jasper,
An approach I use is to only add the index tag if necessary when the user clicks on the heading. Mostly the user only clicks on one or two in any one session so it saves a bit of time. I could send some code example if you wish.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform