Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Activate first visible row in a grid
Message
From
16/06/1999 16:05:28
 
 
To
16/06/1999 10:14:42
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00230386
Message ID:
00230630
Views:
24
>Hi there,
>
>Somebody knows how to have the first visible row in a grid to become the active one?

Run following code from button.click and it will give you a clue:
WITH thisform.grid1
 .setfocus
 nCounter=0
 DO while .relativerow<>1
  nCounter=nCounter+1
  .doscroll(1)
  IF nCounter>20 
   EXIT
  ENDIF
 ENDDO
 .refresh
ENDWITH
Edward Pikman
Independent Consultant
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform