Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Grid Updating
Message
From
22/11/1999 20:28:35
 
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Title:
Miscellaneous
Thread ID:
00293910
Message ID:
00294158
Views:
25
>I have a grid and the source is a table and type is alias. When a product number is entered in the 3rd column and you press enter or tab, it looks up that number in an array and then updates the table for column 4,7, and 8. The table is updated correctly, but the grid will not show the changes from the table until you press enter or tab again. Sometimes it will show all the changes immediately, sometimes it will only show the changes for column 7 and 8, and sometimes it will show no changes. I have tried coding in BeforeRowColChange and AfterRowColChange with the same results. I've tried thisform.grid1.refresh everywhere with no luck. Is there a way to refresh the activerow of a grid? Or, how do you code your grid to update when changes are made to the associated table it is linked to.
>Thanks for your help!
>
>Colombo.

You can move focus out of grid, e.g. to some button on your form (thisform.mybutton.setfocus) and immediately return it back at the same method/event: e.g. This.parent.parent.setfocus from column.textbox keypress.
Edward Pikman
Independent Consultant
Previous
Reply
Map
View

Click here to load this message in the networking platform