Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Grid changes record pointer
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 8 SP1
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
Visual FoxPro
Application:
Desktop
Divers
Thread ID:
01409326
Message ID:
01409405
Vues:
36
Yes the alias does not change. This grid (class I been using forever) is for display only not for editing. When I set thru with the debugger all works well. When I do not debug the the record pointer changes unless I click on the column to sort before clicking the header. I just went thru beta with this and someone noticed the pointer changing just as I am ready to put it in production...Arrrrrrrrrrr. I hate to think that I need to create a method for the header click and the header color change and go back thru testing. I probably did set something that broke it. I am re-scouring the code as you suggested but i know all thats there is grid init and the header code.

>My code definitely works Ok in all situations. Are you sure that recno() in your code returns pointer from correct alias?
>Also, when you click on column it forces grid to 'make it right', i.e. make clicked row and current record the same. May it happen that your interface/code allows to move pointer over grid.recordsource without refreshing the grid, so it shows wrong current row?
>
>>Thanks Ed, but it is close to mine except I do not have mine in a method, its in the click event.
>>I noticed that if I click in the column I want to sort before I click the header, everything works as expected (record pointer does not move). I have tried code in the gotfocus & click of column textbox to set the recno, does not work. Tehe only thing that works is clicking the column record, then clicking the header. I think that is to much to ask the user to do, I need to do it in code.
>>How can replicate that?
>>
Extreme Programming = Plan -> Design -> Code -> Test
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform