Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Moving columns in a Grid
Message
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Miscellaneous
Thread ID:
00160025
Message ID:
00160041
Views:
19
>Hi All,
>
>1) Is it possible to move a grid column programmatically as well as
>interactively ? If so, how does one do that ?


Roughly, from memory...

Grid1.Column1.ColumnOrder = X

>2) Setting the MOVABLE property to FALSE prevents a specific
>column from being moved interactively. However, if you have allowed
>another column to be MOVABLE, it is actually possible to move
>that column AHEAD of the column you had set as NON-MOVABLE,
>thereby effectively moving the column that was supposedly
>non-movable ! Is there a way to lock columns in place so that
>specific column just can NEVER be moved or you cannot move
>other "movable" columns in front of them ?
>
>Michel.

I think that in order to prevent a column from being put in front of it, you'd have to make all the columns before it non-moveable. You could also put code to check the new ColumnOrder and change it if it's before the non-moveable column. I'm not sure, though, what event, if any, fires when you move a column.

-Michelle
Previous
Reply
Map
View

Click here to load this message in the networking platform