Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Simple grid question.
Message
From
02/10/1999 12:52:51
Paul De Niverville
Deniverville Econometric Research Ltd.
Victoria, British Columbia, Canada
 
 
To
02/10/1999 12:19:40
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00271976
Message ID:
00271980
Views:
26
Hi Mike,

Thanks for the fast response.

I put in this code into the click event of the header for column1:

this.parent.parent.ActivateCell(1, 1) && and 2,3,4 for the other columns

It works well, except that the column# in activatecell(row#, column#) seems relative to the columns displayed in the grid. If column1 has disappeared, because of scrolling to the right, activatecell(1,3) goes to the third displayed column, which is column4. This will be confusing for users.

Thanks again,

Paul


>Hi Paul,
>
>>If the textbox for column1 is highlighted and I click on the header for column4,(for example) I wanted the textbox for column4 to have the focus, or be hightlighted or selected. (Sorry, I not sure of the correct term.)
>
>Try something like:
>
Grid1.ActivateCell(Grid.ActiveRow, 4)
Previous
Reply
Map
View

Click here to load this message in the networking platform