I have a similar problem, this time with a checbox in a column of the grid.
When  the user clicks on the checkbox, it performs some code in its click
event and then, instead of staying on that record, the pointer goes up to
the top of the grid. This is annoying.

Finally I solved it with this code in the click event of the checkbox:
local nRec
nRec = recno('mycursor')

** perform some code here

select mycursor
locate for recno() = nRec
this.parent.parent,refresh

In my case, the pointer stays on the record it is supposed to be.

Hope it helps

Rafael Copquin







El vie., 16 nov. 2018 a las 13:49, Kent Belan (<[email protected]>) escribió:

> Hello,
> I have a weird problem with a grid on a locate screen that I have never
> noticed before.
>
> I have a maintenance screen with a locate button, that opens a modal search
> form with a grid to select a record.
>
> When I load the grid with several hundred records the first time it loads
> fine at the top of the file.
>
> The user selects a record and I return to the maintenance form and show the
> record details.
>
> If the user clicks the locate button again, I load the search form with the
> grid and position the cursor to the record that was previous selected and
> the grid shows the correct record.
>
> The problem is when the user clicks on the grid, it repositions itself to
> the first page of the grid and now we are on the wrong record.
>
> Very weird ...  Has anyone seen this behavior and possible solution ?
>
> Thanks,
> Kent
>
>
[excessive quoting removed by server]

_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://mail.leafe.com/mailman/listinfo/profox
OT-free version of this list: http://mail.leafe.com/mailman/listinfo/profoxtech
Searchable Archive: http://leafe.com/archives/search/profox
This message: 
http://leafe.com/archives/byMID/profox/cahm-jj0jqr0d6lxvp_dr1fre0mvrxvv99-knena1amfmkoq...@mail.gmail.com
** All postings, unless explicitly stated otherwise, are the opinions of the 
author, and do not constitute legal or medical advice. This statement is added 
to the messages for those lawyers who are too stupid to see the obvious.

Reply via email to