Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Column number in a grid
Message
From
23/02/2005 05:41:46
 
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 7
OS:
Windows XP
Database:
MS SQL Server
Miscellaneous
Thread ID:
00989532
Message ID:
00989541
Views:
30
This message has been marked as the solution to the initial question of the thread.
Hans

One idea that springs to mind. You could put the following in the .Click() of each header:

SomePropOrVar = This.Parent.ColumnOrder

or you could subclass your header and put the code in the class.

Terry

>Hello,
>
>when I click on the header of a column in a grid, how do I know the columnnumber ?? I tried with the activecolumn property, but that returns the columnnumber of the columnt that contains the active cell and clicking the header does not make the column the active column !
>
>Thanks,
>Hans
- Whoever said that women are the weaker sex never tried to wrest the bedclothes off one in the middle of the night
- Worry is the interest you pay, in advance, for a loan that you may never need to take out.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform