Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to manually sort the columns data in the grid
Message
From
24/05/2004 12:51:43
 
 
To
24/05/2004 11:12:21
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00906538
Message ID:
00906585
Views:
12

Is it possible for me to show first the proj_no, then filename and then ID in the grid.


yes, with ColumnOrder column property.

But attention, at runtime VFP use a two column swap alghoritm.
ColumnIndex ColumnOrder  
 1              1
 2              2
 3              3
 4              4
 5              5

ActiveColumn = 4 is the ColumnOrder of the column where is the control with focus, and then it is Column4.

Now, change the position of Column4 to 2. For do this:
Set Column4.ColumnOrder = 2.

Now:
 1              1
 2              4
 3              3
 4              2
 5              5

ActiveColumn = 2 is the ColumnOrder of the column where is the control with focus, and then it is Column4.
Fabio
Previous
Reply
Map
View

Click here to load this message in the networking platform