Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Using an array with a grid control
Message
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00102613
Message ID:
00102662
Views:
31
You can't use an array as the control source for a grid. You could create a cursor with 16 fields using the CREATE CURSOR command and populate the cursor with the information from your detail records. When the user is done editing (if you're allowing edits in the grid), you could update the detail table from the information in the cursor.

>I am writing an application that has a header table and an associated detail table. The detail table has 16 fields and will contain up to 4 records for each header record.
>
>I can display this table through a grid, but it will show 4 rows for 16 columns. What I would like to do, is put the detail table on it's own tab and show 16 rows for 4 columns. This way all the data would be visible and the user would not have to scroll to see all the data.
>
>Can I populate an array and then use that as a source for the grid? I would appreciate any suggestions. I would also consider a third party grid, but I am not sure which one is the best.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform