>>Rolandas,
>>
>>GotFocus is an event that fire shwen the grid gets focus, it is SetFocus that you want.
>>
>>thisform.grid1.column1.text.SetFocus()
>
>I need declare function GotFocus(). My goal is refresh form every time, when move to next row.
Look at the Grid's AfterRowColChange Event, which fires each time the focus in the grid has changed to a new row (record) or column (field in record) after the new cell gets focus as long as the When event returns .T., allowing the cell to be entered. Sounds like what you're looking for.
>But I don't know how declare GotFocus() code. With form designer I know how did this, but I need decalre this functions in code only.