Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Sort Grid by Column?
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Classes - VCX
Divers
Thread ID:
00185978
Message ID:
00185996
Vues:
21
>Is there any way to display a grid sorted by column - dynamically. I'm changing jobs shortly and don't want to generate too much code on this project as it may be too much for the remaining people here to cope with. I need to be able to say something like grdSample.Column1.Sort() or something similar.

Hi Nigel,
Create an index tag for each ordering that you want. Put code in the click event of each header object of your grid that changes the current index order. Unfortunately you can't subclass the header class so you will have to insert the code manually. Now each time that the user clicks on a new header the grid will reorder.

Hope this helps,
Ned Ames
Ned

Reality is.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform