Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
GRID Not refreshing properly
Message
 
À
23/07/2001 09:51:29
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Divers
Thread ID:
00533875
Message ID:
00533932
Vues:
12
Hello

Grids do act funny every now and then

try calling the item in question directly i.e.
thisform.textbox.refresh
or
&& if thisform.textbox.controlsource = pn_value
pn_value = new_val
then
_screen.refresh
thisform.refresh
thisform.textbox.refresh
if it works then take one out at a time until you figure out which one worked

or try putting it in diffrent places like
&&thisform.grid1.AfterRowColChange
thisform.cust_meth

then in thisform.cust_meth say
pn_val = table.field
thisform.textbox.controlsource = pn_val
_screen.refresh
thisform.refresh
thisform.textbox.refresh


Hope this helps in any way




>FoxGuru's
>
>I have a form, with multiple pages, and on one of the pages I have a Grid.
>
>This Grid is not populated by a view, it is directly-linked to a table.
>
>On this Grid, when the user selects a row, I want to take data from that newly
>selected row and display it on the form.
>
>Seems simple, but the data it displays is always the LAST row selected, not the new current record. What is going on here? Is there something I need to refresh? Its like the DB pointer isn't updating...
>
>This code is on a grid procedure, under grid object : AfterRowColChange
>
>thisform.refresh
>thisform.textheader.caption = This.Reqtname.text1.value
>thisform.refresh
>
>using this code, it updates the form textheader with the last selected row data, not the new selected row data.
>
>THANKS FOR HELPINGGGGGGG!!!
Stephen McLaughlin
"Sexy Steve Valenteno", "Blastmaster"
stephenmclaughlin@gmail.com
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform