Jimi,
If you mean on first entry then add
thisform.lockscreen = .t.
to when.
Also if you don't need cursor there simply 'set cursor off' in when and back on in valid.
Cetin
>hi Cetin,
>
>When I use MyGrid.setfocus(), the first row will be hightlighted, but *seomtimes* the active cell backcolor will become white, even when I move the cursor to left or right within the cell.
>
>It'll become normal again if I click the row or move up/down the cursor.
>
>What's happening? Is it the setfocus() or what?
>
>Jimi
>
>>>Done now, also added sparse to highlight the selected cell as well (have read your another post) :-)
>>>
>>>Thanks a lot!
>>
>>:) Other post's class is in download section under classes named 'Two grid classes' as far as I remember.
>>Cetin