Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Saving User's Grid Settings
Message
From
02/08/1999 12:38:46
 
 
To
02/08/1999 11:47:05
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00248848
Message ID:
00248874
Views:
11
Hi Jim,

>I have a need to save the settings of a grid's columns which have been dragged into position and / or resized by the user.

This is copied and pasted from thread #240551:

_______________
Well, first you'll need a table to store this data, with fields including:

1.name, name of the grid
2.username, if you want seperate preferences for seperate users
3.columnno, order inwhich the column appears in the grid
4.columnsource, the control source
5.columncaption, the caption expression
6.columnwidth, self explanitory

Then add the columns at runtime.
After you have this functionality, on exit you should be able to save the columns back to the table with new orders and widths.

Its not simple but its not really overkill either. This is a simple example, you may want a preference and default table seperatly to add more functionality. Experiment...

Hope this helps
Previous
Reply
Map
View

Click here to load this message in the networking platform