>>Hi Greg
>>
>>.......The grid may - at its discretion decide that a cell has to be refreshed .........
>>
>>This is the bit I dont understand. What dertermines this . I have no code to refresh anywhere that I know of anyway.
>>Just to re-iterate.. I realise I can code around this but I would like to understand why this is happening
>>I could have have up to 40 other forms with similar functionality and dont want to have to change all
>> these if I dont have to.
>>
>>The fact that when I make the screen invisible stops the problem , and also the fact that the records that
>> get the problem are random, seems to me that my code is not the issue, but rather something internal to Foxpro , perhaps that it has to refresh the grid every now and again. But why it is doing this I have no idea .
>
>Just like Gerard said, it's by design. Lots of stuff on a grid are dynamic; even if you don't have any of the dynamic* properties set, there's the record mark, delete mark to be maintained. You may move to a different record in the background, may change values - the grid should reflect
I think you meant Gregory.
what you're doing (by design, I guess). So the grid will obey some internal clock and VFP will decide it's time to refresh. It will visit each visible records, read the values and refresh one row at a time. At some point this will clash with whatever you're doing in grid's alias.
>
>The grid may not refresh if the focus is on some other control or on another form (a thermometer may be handy). Can't beat the behavior-by-design, but can circumvent (aka work around) it.
If it's not broken, fix it until it is.
My Blog