Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Multi column sorting in grid
Message
De
23/10/2011 11:29:49
 
 
À
23/10/2011 11:15:02
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:
01527132
Vues:
66
>>Check your in box.
>
>Thanks Marcia (and Tore).
>
>It seems that I haven't really explained myself properly as this isn't what I'm looking for. I don't want the user to sort things in the grid by dragging the rows (although that may come in handy elsewhere). I want the user to be able to sort the entire contents of the grid by specifying which columns to sort on.
>
>So If I have a grid showing the following columns:
>
>Company, Department, Surname
>
>I want the user to be able to sort the grid by:
>
>Company + Department + Surname
>
>or by:
>
>Department + Surname
>
>or by
>
>Surname
>
>or by
>
>Surname + Company + Department
>
>or any other possible combination.
>
>I was envisaging this as letting the user to (to get the Company + Department + Surname order) click on the Company column header, which will then sort the grid by Company, then they can Ctrl+Click on the Department header which will set the order of the grid's recordsource to Company + Department and then they can Ctril+Click on the Surname column header and the full sort order will get set to Company + Department + Surname.

I don't think it would be easy to create a generic class for this. But you can roll your own. However, it seems like a better idea to have a combo with the relevant options, since you need to have the corresponding index tags if there is much data.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform