Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Splitting each row in a grid into two (or more) lines
Message
 
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:
01088135
Views:
8
First thing that comes to my mind.
SELECT Field1, Field2, Field3, Field4 FROM GridRecordSourseTable;
UNION;
SELECT Field5 AS Field1, Field6 AS Field2, Field7 AS Field3, Field8 AS Field8 FROM GridRecordSourseTable;
INTO CURSOR NewGridRecordSourse
with proper conversion of types and PADing. Then you need to index the new cursor so the records to be ordred the right way.


>Hi all,
>
>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!
>
>John
Against Stupidity the Gods themselves Contend in Vain - Johann Christoph Friedrich von Schiller
The only thing normal about database guys is their tables.
Previous
Reply
Map
View

Click here to load this message in the networking platform