I have a grid control on a form in Base. From Basic, when a column is clicked I want to determine the data source column name associated with the clicked grid column. Using this code:
intSelectedCol = objEvent.Source.CurrentColumnPosition
I get the column number that was clicked in the grid. But I need to convert that to the record source field name of the clicked column. I would think that would be a property of the grid control but I can’t seem to locate it anywhere.
Any ideas?
Welcome!
I’m not sure which of the events you are handling - I usually use objEvent.getModel().DataField
or
objEvent.oSource.getModel().getByIndex(intSelectedCol).getName()