Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Grid Refresh problem
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00101877
Message ID:
00102183
Views:
38
>>>Hi! I've created a form for entering data for a parent & child file.I'm using a grid with methods for adding and deleting items. What happensis that the grid refresh properly only some of the times. I'm usingthisform.lockscreen=.T. thisform.gridrefresh thisform.lockscreen=.F.but even then on adding new item after the first few items the gridjust dosen't seem to refresh ?ThanksSonali
>>
>>If you add items programatically, you can set focus to the first control on the first column, in order to refresh this row.
>>
>>mygrid.setfocus()
>>mygrid.column1.text1.setfocus()
>>
>>If you add items interactivelly within the grid you'll not need this.
>>
>>Hope this helps
>
>But I would have thight that by refreshing the grid all the rows are automatically refreshed and the display correct.

Sonali, I also would think refreshing the grid would show all the rows just added, but I have found the same problem as you. Carlos' method of setting focus to the first column has worked for me as well.

Barbara
Barbara Paltiel, Paltiel Inc.
Previous
Reply
Map
View

Click here to load this message in the networking platform