Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Rhinorhino on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Problem with ActivateCell method outside the visible range of a grid 1

Status
Not open for further replies.

Harulem

MIS
Joined
Mar 26, 2004
Messages
8
Location
BE
There is something I don't get with the ActivateCell method.
I can't use it to reach a cell that is not currently visible on the form's display.
Let's say for example that the grid displayed on the current form is ten lines long, displaying record number 1 to 10 of the grid datasource table. A call to ActivateCell(X,Y) won't work for any X outside the range [1,10]. If the grid was 5 lines long, the range would shrink to [1,5].
Is this normal, and if is, is there a way around it?
Thanks in advance.
 
Harulem,

I'm not sure about this, but I think you need to call the grid's SetFocus method after changing the active cell. Perhaps you can give it a try and report back.

Mike


Mike Lewis
Edinburgh, Scotland

My Visual Foxpro web site: My Crystal Reports web site:
 
Thanks a lot Mike, it was just as you suggested.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top