David,
No, of course you are absolutely right - once it works, it'll never be zero again, except if there are no records in the grid.
It just seems a very roundabout way of achieving it.
What bothers me most though, is that calling the SetFocus fires the .Page.Activate event.
This puts some limitations to what one can do in the .Page.Activate method.
Got to look up RecordMark, that's one I must have missed.
Thank's for your help and have a pleasent sunday.
Peter
>Peter,
>Let me ask you a couple of questions though about the code you posted. When does nActiveRow have a 0 value? Once the grid has gained focus will it ever be 0 again?
Peter Pirker
Whosoever shall not fall by the sword or by famine, shall fall by pestilence, so why bother shaving?
(Woody Allen)