Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Move grid column without firing header's click()
Message
 
To
22/06/2005 09:40:43
Mike Sue-Ping
Cambridge, Ontario, Canada
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 8 SP1
Miscellaneous
Thread ID:
01025428
Message ID:
01025435
Views:
16
>Hi,
>
>I have a VFP grid on a form. In the grid's columns' headers' click() event, there is code to sort that column (ascending/descending). One side effect is that when I move a column by dragging and dropping it to the new position, the sort is also fired.
>
>Anyone have suggestions as to how to avoid the sorting after moving the column?
>
>TIA
>
>Mike

Add a new property in the form named i.e. ColumnMoved
In MouseDown Event of the Header
thisform.ColumnMoved = .f.

In Moved Event of ther Column
thisform.ColumnMoved = .t.

In Click Event of the Header
IF NOT thisform.ColumnMoved
*** SORT The table
ENDIF


(not tested)
Against Stupidity the Gods themselves Contend in Vain - Johann Christoph Friedrich von Schiller
The only thing normal about database guys is their tables.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform