Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Splitting each row in a grid into two (or more) lines
Message
De
18/01/2006 14:57:05
 
 
À
18/01/2006 14:05:16
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Versions des environnements
Visual FoxPro:
VFP 6
OS:
Windows XP SP2
Network:
Windows XP
Database:
Visual FoxPro
Divers
Thread ID:
01088118
Message ID:
01088150
Vues:
7
>I've got a grid in a form that is too wide for the form. The users can scroll to see all the information, but asked if it was possible to split each record into two lines so all the information could be seen at once. For example, here's how it is now:
>
>field1 field2 field3 field4 field5 field6 field7 field8
>field1 field2 field3 field4 field5 field6 field7 field8
>field1 field2 field3 field4 field5 field6 field7 field8
>
>What they'd like is:
>
>field1 field2 field3 field4
>field5 field6 field7 field8
>field1 field2 field3 field4
>field5 field6 field7 field8
>field1 field2 field3 field4
>field5 field6 field7 field8

>Is this doable? If so, can someone please point me in the right direction?

>Thanks!

Yes, basically create a custom class based on the container, then add two textboxes to the class (one above the other). Then add this custom class to the grid column and set the control source to the container. Set the control sources for the contained textboxes to the appropriate fields. Also, you will need to have some methods that fire on column/row resize to resize the textboxes. You can do quite a bit of layout using this method.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform