Michael,
I believe it's literaly the grid, not one of it's members that has to have the focus. In AfterRowColChange it's always some member that has the focus, so it's just going to return 0. Luckily, AfterRowColChange fires when you set focus to the grid, which is why your suggestion works.
Btw, unlike with some other container objects you can't even test for GotFocus().
>Peter,
>
>How about in the AfterRowColumnChange() method of the grid, set a property to hold the currently selected row in the grid, thus in your click() event of the button, you do not have to set focus to the grid.
Peter Pirker
Whosoever shall not fall by the sword or by famine, shall fall by pestilence, so why bother shaving?
(Woody Allen)