Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Why my focus of a grid cannot roll down 1 row?
Message
From
12/08/1999 03:42:41
 
 
To
11/08/1999 13:24:43
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00252629
Message ID:
00252858
Views:
20
Hi Power Wong.

>> thisform.grid1.ActivateCell(thisform.grid1.ActiveRow + 1,1)
thisform.grid1.setfocus()
It still stay in the first column and row.
How can it go to the 2nd row automatically after "append blank"? <<

I assume you are aadding your new record in the keyPress of the Text box contained in the last column. After APPEND BLANK, use this code:
WITH This.Parent.Parent
   .Refresh()
   .Column1.SetFocus()
ENDWITH
Should do what you want.

Marcia
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform