ActiveColumn, ActiveRow
These grid properties tell you which column and row of a grid contain the focus. They're useful only when the grid has focus. Usage | nCurrentColumn = grdGrid.ActiveColumn nCurrentRow = grdGrid.ActiveRow |
In the original release of VFP 7, under some very special circumstances, ActiveColumn can be set to 0 with the grid appearing to lose focus. It happens only when another form is run from the Valid method of a control in the grid. The problem is fixed in Service Pack 1. |
Example | IF This.ActiveColumn = 3 * Take an appropriate action WAIT WINDOW "Hey, we're in the third column" ENDIF |
See Also | ActivateCell, Column, Columns, Grid, RelativeColumn, RelativeRow |
View Updates
Copyright © 2002 by Tamar E. Granor, Ted Roche, Doug Hennig, and Della Martin. All Rights Reserved.