Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
GRID Not refreshing properly
Message
 
 
À
23/07/2001 10:46:42
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:
00533927
Vues:
10
This message has been marked as the solution to the initial question of the thread.
Hi!

If I understood correctly, Reqtname is a grid column name, right? If yes, text box in column gets its value after the event you catch is fired.

thisform.textheader.caption = eval(This.Reqtname.text1.ControlSource)

I guess above can help. Get values from the record source instead.


>Hi, thanks for your help as always!
>
>The form actually refreshes just fine the first time in.
>
>But as we click on records within the grid,
>this code:
>
>thisform.textheader.caption = This.Reqtname.text1.value
>
>updates our textheader.caption with the data of the LAST selected record,
>not the data of the NEWEST/CURRENT selected record, like we expect.
>
>Shouldn't this code work, why does it lag 1 record behind in the update?
>Thanks,
>Seth
>
>
>>Hi!
>>
>>Page of pageframe is not refreshed until it is activated. You have to refresh it as sonn as it is activated. Better do this using UIEnable event of some control on each page - put this.paret.Refresh() when page is activated.
>>
>>HTH.
>>
>>>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!!!
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