Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Changing Current Row in a Grid
Message
De
25/02/1998 11:25:50
Cetin Basoz
Engineerica Inc.
Izmir, Turquie
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00081023
Message ID:
00081108
Vues:
24
>>>Does anybody know how to change the current row in a grid by program. I am using GETNEXTMODIFIED(), GO , and need to change the current row in the grid to match the database record now pointed to.
>>
>>Hi Nigel,
>>It should be there. You mean moving the record mark ? If so without a dynamicbackcolor you could use a trick :
>>
>>* On a control other than grid
>>thisform.grid1.setfocus   && Set focus to grid
>>this.setfocus             && Set focus back to control
>>
>>Cetin
>
>Many thanks for your response. However, I did find that I had to reset the column bound property to true to enable me to pick up the correct value from the column textbox. Issuing a setfocus sent the grid record pointer to the first record in the grid, not the database record??? I had to try a number of different ways to get this to work!
>
>Nigel.
Hi Nigel,
There is something else wrong with this. Setting focus to grid and then back doesn't take you to the first record. Could it something like refresh and this is child table ?
Cetin
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform