Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Grid - AfterRowColChange
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 8 SP1
OS:
Windows XP SP2
Database:
Visual FoxPro
Miscellaneous
Thread ID:
00966222
Message ID:
00966226
Views:
11
>A couple of grid questions:
>1. The AfterRowColChange event triggers when you select a new cell using the mouse or the keyboard.
>Q: Shouldn't the event trigger when the record pointer in the source table moves?
>I think it should, because you can see the record marker and row highlight move, but it does not.
>To get around this we put code in our classes that loops through the objects in a form when we move to another record, and if the object is a grid does a loControl.setfocus(). This however does not work when AllowCellelection is set to .F., because setfocus fails.


Grid.setfocus() with AllowCellelection=.F. works fine for me. Can you post a simple code that repro this problem?

>2. The help says that nColIndex (the AfterRowColChange para) "returns the index of the newly selected row or column", but it seems it always returns the column index.
>Q: What would be the row index?

The help is incorrect. It's always column 3 which is the same as ActiveColumn
property.
For the current row see ActiveRow property of the grid.
--sb--
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform