>>>
>>>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...
>>
>>I don't know Nadya. All I know is valid usage is tricky and might catch you if you have say row level validation.
>>Cetin
>
>I have table level buffering. I realized, that row level would not work, so I proposed some changes in our framework.
Row-level buffering is near impossible to use correctly in grid because record become automatically updated as soon as grid is refreshed. Column.Refresh will cause auto-update too.
As about Valid event of grid, it is fired when grid lose focus, as far as know, so probably it can cause no conflicts but just will be called twice - once from control (your manual call) and once from grid (automatic call as event). From the OOP point of view better make a custom method. Direct call of event (like button.Click) should be avoided with exception of special situations.
Vlad Grynchyshyn, Project Manager, MCP
vgryn@yahoo.comICQ #10709245
The professional level of programmer could be determined by level of stupidity of his/her bugs
It is not appropriate to say that question is "foolish". There could be only foolish answers. Everybody passed period of time when knows nothing about something.