>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.
Précédent
Suivant
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement