Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Combo in a grid
Message
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Classes - VCX
Titre:
Divers
Thread ID:
00535153
Message ID:
00535578
Vues:
10
Hi!

>>As far as the records jumping around on the grid: Is the value of the combox or another field on the grid contained on an index used to sort the table that is the grids data source?
>
>Yes, and this is my biggest problem. If the user changes any of the fields, which is part of the index expression, the record jumps to another location. Next/Prev buttons also would place to another location. I want to keep user at the same location, as he/she was.
>

BTW, Record will not jump until you Refresh grid or set focus to it. Just try a simple sample with default grid class. If this is for 1 record editing only, do not ever call the refresh. Well, if you have row highlighting, this is somewhat tricky. Let me know if you need the description of way of how to organize Dynamic* depended on RecNo() without calling of grid.Refresh in the AfterRowColChange.

Of course, when user change focus...

P.S.: I hate to use grids for data editing too.
Vlad Grynchyshyn, Project Manager, MCP
vgryn@yahoo.com
ICQ #10709245
The professional level of programmer could be determined by level of stupidity of his/her bugs

It is not appropriate to say that question is "foolish". There could be only foolish answers. Everybody passed period of time when knows nothing about something.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform