Hi!
Try grid.Refresh before the first requery of that view. I do not know if it will help, but I experienced another thing - grid calls AfterRowColChange event from the grid.refresh first time after form opening, but I do not remember in which circumstanses. Maybe this can help.
>I have code that issues a Requery on a view. It is contained in a Custom class and is called by a button on a page of a pageframe. The first time when the Requery is issued the code immediately jumps to the AfterRowColChange method for a grid on another page (which uses the view in question). Subsequent times the code is run it does not do this. This causes problems as I set some parameter values in the AfterRowColChange of that grid and it changes them and causes problems in the data of other views. Why would this happen? Thanks!
>
>Regards, Renoir
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.