>Hi Sergey
>
>>It's design time feature.
>
>
THIS.Columns[this.columncount].WRITEMETHOD("LostFocus", ;
>[if this.parent.LastRow()] + CHR(13) + CHR(10) + ;
>[ keyboard "{Ctrl+TAB}"] + CHR(13) + CHR(10) + ;
>[END] + CHR(13) + CHR(10))
>
>No wonder it does not work.
>
>Any alternative to this. I want to tab out of the grid when I reach the last column of the last row in a grid.
>
>Thanks for your response.
>
>Please advise.
You can have that code elsewhere (in a custom method) and use BindEvent() to make the code fire with the lostfocus of the column.
Er... VFP6? Ouch. Um... never mind.
Your options in VFP6 include code in ARCC or BRCC of the grid (as Cetin said), or using custom controls - a custom column which would have a property .lLastColumn (set at grid's init, probably), so its .lostfocus would contain the tab out code. Or you can have a (dynamiccurrent)control in the last column which would have the code in its lostfocus.