If you have AllowCellSelection = .f. for the grid, you can use code similar to the following to determine which column has been clicked, dblclicked
local laObjects(1), loObject, lcType
Amouseobj(laObjects)
loObject = laObjects[1]
if Type('loObject.Parent') = 'O'
loObject = loObject.Parent
endif
if Type([loObject.Class]) = [C] and loObject.Class = 'Column'
do case
case loObject.ColumnOrder = 2
case loObject.ColumnOrder = 4
otherwise
endcase
endif
"The five senses obstruct or deform the apprehension of reality."
Jorge L. Borges?
"Premature optimization is the root of all evil in programming."
Donald Knuth, repeating C. A. R. Hoare
"To die for a religion is easier than to live it absolutely"
Jorge L. Borges