Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Move grid column without firing header's click()
Message
 
À
22/06/2005 09:40:43
Mike Sue-Ping
Cambridge, Ontario, Canada
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 8 SP1
Divers
Thread ID:
01025428
Message ID:
01025435
Vues:
18
>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.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform