Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Splitting each row in a grid into two (or more) lines
Message
From
18/01/2006 14:57:05
 
 
To
18/01/2006 14:05:16
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Environment versions
Visual FoxPro:
VFP 6
OS:
Windows XP SP2
Network:
Windows XP
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01088118
Message ID:
01088150
Views:
8
>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.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform