Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to prevent Grid's Refresh
Message
 
 
To
11/04/2002 15:34:09
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00643916
Message ID:
00644036
Views:
17
This message has been marked as the solution to the initial question of the thread.
The simple solution, which comes to mind, is to set form's property, say, NoGridRefresh and in AfterRowColChange set it to .t.
if grid refresh put
if thisform.NoGridRefresh
   nodefault
endif
thisform.NoGridRefresh = .f.
This is just an idea and not tested.
Of course, it could be a grid's property...


>Hy,
>I have a grid and a couple of related textboxes in the Form.
>In the AfterRowColChange I put thisform.refresh().
>But not only the textboxes get a refresh but also the grid.
>Is there a way to prevent the grid also refreshes?
>I know I can say thisform.textbox1.refresh(),thisform.textbox2.refresh() etc.
>A second solution is to put the textboxes in a container and said thisform.cnt.refrsh().
>But that is not what I want.
>I want to block the refresh from the grid.
>In the refresh methode of the Grid Return .F. doesn't work because the Refresh is already there,It must be done before the Refresh methode.
>Is this possible ?
>
>Thanks John Zylstra Holland
If it's not broken, fix it until it is.


My Blog
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform