>>>I take my word. Reading title and whole thread I think this is bad from the beginning as David pointed out.
>>>As the creator of Highlightedgrid I somehow got it wrong and expected the highlighted to be top level class. I think it's not :( worse it's not HighLighted class anymore.
>>>Sorry.
>>>Cetin
>>
>>Hi Cetin,
>>
>>We have wggrid class which is based on VFP base classes. It has few new methods and one property nCurRec (what was added recently by my request). Therefore I just make highlighted to be a subclass of wggrid (though it might be better to make all our grids highlighted, therefore the class hierarhy should be probably switched). Anyway, I found the above code in our base wgGrid class, which I don't want to execute, since I always take care of navigation buttons updating by myself.
>>
>>BTW, I'm not sure, why you're calling Grid.Refresh in AfterRowColChange event of this grid. I take it out (commented the whole dodefault()), and it seems to resolve few strange effects I previously have.
>
>But it was not pure blind refresh call in original class as I remember. If I'm not wrong there was a check if in grid or not.
>Cetin
Right, but I have custom code in valid event of the grid, which I call from textboxes valid. Even with dodefault() in valid, I had refresh called.
Do you think, it would be better to call custom grid method instead of Valid method? I think, I'll add a new method Validate to a grid, and make necessary changes...
If it's not broken, fix it until it is.
My Blog