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.