>>when i'm resizing the headers in my grid the click event of the header is fired
>>and the column get ordered by it's index ..
>
>In your grid Header.Click(), add this code:
>
>
nWhere = 0
>this.Parent.Parent.GridHitTest(MCOL(MWINDOW(), 3), MROW(MWINDOW(), 3), @nWhere)
>IF NOT INLIST(nWhere, 2, 13)
> WAIT WINDOW 'Click!'
>ENDIF
>
>Now you know if you're resizing or not.
Mike, it works great for resizing, but not for moving columns. Do you have an
idea, how to detect moving from Column.Header?
I tried David's suggestion and it works just fine. So, I updated my header class.
If it's not broken, fix it until it is.
My Blog