Maybe a step by step would help. Let me see if I have this straight.
1. you move to a record number - maybe SEEK cSomeKey, or GOTO 500, or LOCATE cSomeField =
cSomeVar, or whatever
2. mygrid.setfocus()
3. mygrid.refresh()
At which point, the record pointer is sitting at record number 1 in the table (and it should not be)?
Is there any code in the grid refresh()?
Alan
>Salut Sylvain,
>
>> Are you only refreshing the grid
>> or did you also move the record pointer in the cursor?
>I do both. But after I move cursor to the current record (row in the grid),
>I call a Grid.SetFocus and that seems to be the cause of the problem. Because I tried without SetFocus and enverything is ok. For me SetFocus is important to mark the row in the grid. How can I resolve that problem now?
Précédent
Suivant
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement