>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.