Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Multiple Grids - Alias Not Correct When Navigating
Message
From
24/08/2004 15:47:40
Jay Johengen
Altamahaw-Ossipee, North Carolina, United States
 
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00936081
Message ID:
00936091
Views:
29
>>Form with multiple grids. I have a navigation command group that moves the record pointer. I use code in the Click events to set focus and refresh the proper grid depending on the current alias after the pointer is moved. The problem is that even if I select the alias in the AfterRowColChange event of each grid, the alias always reverts back to whichever was the default. So, when I click on my 2nd grid and then click on my navigate button, the pointer is moved in the wrong grid.
>
>I am not sure, what is the code in your naviagation buttons, but in our buttons we operate with DataEnvironment.SelectedAlias (or what is the property?). So, you need to search for this in your class code and perhaps change it in run-time based on what grid you're currently navigating.

I was able to resolve this by creating a CurrentAlias form property, but still would like to know why the alias was changing back to the same one regardless of what I selected. I wonder if it a form refresh issue of some sort?
Previous
Reply
Map
View

Click here to load this message in the networking platform