>Hi All. I have a grid displaying some data from a cursor. I scroll it down a way. Then I change the data in the cursor, which has a fixed number of records, and refresh the grid which puts the grid back to the top and the first record. What was the technique / trick to allow the grid to re-display at the same place in the cursor i.e. to the same scrolled level as before the refresh?
Not tryed this:
LOCAL lnRelRow, lnScrollDirection
lnRelRow = thisform.Grid1.RelativeRow
thisform.Grid1.Refresh()
IF m.lnRelRow # thisform.Grid1.RelativeRow
lnScrollDirection = IIF(m.lnRelRow < thisform.Grid1.RelativeRow, 0, 1)
DO WHILE m.lnRelRow # thisform.Grid1.RelativeRow
thisform.Grid1.DoScroll(m.lnScrollDirection)
ENDDO
ENDIF
but again this is not tested.
Against Stupidity the Gods themselves Contend in Vain - Johann Christoph Friedrich von Schiller
The only thing normal about database guys is their tables.