have not tried this yet, as I would like some feedback before I do so.
I want to create a new property on my base grid class called nColumn.
In this property, I would like it to contain the value from:
This.Columns[This.ActiveColumn].ColumnOrder
Can I set up this property so that it will always contain the value of this??
Any suggestions on how to do this are greatly appreciated.
Thanks,
Mike
Michael, on VFP the ActiveColumn is the order of the Active Column, not the index.
Then:
This.ActiveColumn = This.Columns[This.ActiveColumnIndex].ColumnOrder
You must implement ActiveColumnIndex property, and this is not a simple or efficient task.
- on the ActiveColumnIndex.Access you can search the column with ColumnOrder=This.ActiveColumn
Another problem:
BeforeRowColChange and AfterRowColChange parameters is nColOrder, NOT nColIndex !
Then you cannot do this with a Assign into AfterRowColChange.