Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Multi column sorting in grid
Message
De
24/10/2011 12:32:10
 
 
À
24/10/2011 02:19:52
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Versions des environnements
Visual FoxPro:
VFP 9 SP2
Divers
Thread ID:
01526657
Message ID:
01527193
Vues:
118
>>Hi,
>>
>>has anyone implemented a way to allow users to sort by any combination of columns displayed in a grid?
>>
>>I would like to allow my users to click on a column and the grid gets sorted by that column (this is implemented already) then if they want to add another column to the sorting, they can ctrl+click on the next column so the order will be by the first column, then the second column and so on.
>
>
>Hi Frank,
>
>I have show the 'clue' in foxite (id:onytoo), why not you just create by your self?
>Check this link, this is a simple example:
>
>http://www.ziddu.com/downloadlink/16957956/multicolumnsort.rar
>
>
>Regards,
>Ony

Hi,

I was curious to learn how you had solved this problem. It works ok however you should either review the code or make a little changement not allowing to move the grid columns as when you do that with this class you will get unwanted results.

Update:

easy fix:

replace the 1st endif in the method dosort to the bottom line of that method So donot rebuilt the grid when you only have moved a column.

Regards,

Koen
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform