Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Grid ActiveRow always returns 0
Message
From
15/05/2004 05:40:26
 
 
To
14/05/2004 08:40:14
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Miscellaneous
Thread ID:
00904000
Message ID:
00904294
Views:
16
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)
Previous
Reply
Map
View

Click here to load this message in the networking platform