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:
00186000
Vues:
20
>>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

That was one solution I toyed with. Two problems: too many fields and also I don't trust the people here to leave the tables/indexes alone. Non technical people here have VFP installed!!! Some horror stories (recently somebody deleted a vital table, somebody else moved a folder, somebody else renamed the public folder on the network - I'm glad I'm going!).
Nigel B Coates
NBC Software Services
Dublin, Ireland.
eMail: Nigel.Coates@NBCSoftware.com
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform