>>Would you try this (I didn't yet) :
>>
>>*Grid.BeforeRowColChange
>>lparameters nColIndex
>>if this.columns(nColIndex).Columnorder = this.ColumnCount ;
>> and !mdown() ;
>> and (readkey()=15 OR inlist(lastkey(),4))
>> keyboard '{DNARROW}'
>>endif
>>
Cetin
>
>Cetin
>I really appreciate your help. I used a modified version of
>your code in BRCC that does just I want I wanted.
>
>IF READKEY() = 15 AND nColIndex = This.ColumnCount
> KEYBOARD '{DNARROW}'
>ENDIF
>
>
>You have also educated on some other features of the grid that I was
>not aware of. You would think the VFP team would have updated that function or at least provided a way to change that default behavior.
>Again, Thanks, Chuck
Chuck,
Glad it worked :) Yes it was my mistake not to just use :
nColIndex = This.ColumnCount
PS: Do not drop !mdown() check. Otherwise in case last readkey() is 15 and user uses mouse to click somewhere would get an unexpected dnarrow.
Cetin