Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Store column settings in a grid
Message
From
12/05/1999 13:53:32
 
 
To
07/05/1999 22:30:33
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00216330
Message ID:
00217954
Views:
18
To save various user settings you can untilize a "RESOURCE" table loosely structured as follows:

USERID C
FORMID C
FORMTOP I
FORMLEFT I
FORMWIDTH I
FORMHEIGHT I
GRIDARRAY M

In your base form class add code to the DESTROY event which captures the above settings. Define an array to hold grid settings. By drilling down the containership hierarchy locate each grid and create an array row. Each row could be structured as follows:

grid reference ( thisform.container1.container2.grid1 ) hint ( sys(1272) )
columnstring C1,O99,W999;C2,O99,W999...

After saving the grid data to the array, store the array to the Memo field.

Add code to the INIT event of your base form class to attempt to retrieve a record from the "RESOURCE" file and if found apply the saved info.


>How can I store the ColumnOrder and Width when the user modifies a grid?
>
>Thanks
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform