In VFP9 I have a grid control ,witch show the records from a database table. And also I have a command button wherewith I want to navigate from a row to another. I tried with thisform.grid1.ActiveRow = thisform.grid1.ActiveRow +1
,but this doesn't work. Thanks in advance.
Asked
Active
Viewed 174 times
0

Liviu Solcovenco
- 75
- 4
- 13
1 Answers
1
Per the VFP documentation, the ActiveRow Property "Specifies the row that contains the active cell in a Grid control. Not available at design time; read-only at run time".
I would do something like this.
IF EOF("TableAlias) = .F.
SKIP 1 IN "TableAlias"
ENDIF

Frank Perez
- 993
- 8
- 18
-
Thanks, the problem is how to highlight the actual row when I click on button. – Liviu Solcovenco May 23 '12 at 11:50