Hello,
I have a seemingly simple question, to which I can't find a solution.
Simply put, I'd like to have an event handler invoked when I click (or
double click) on a column header, to know which column was
selected. The obvious idea is to then switch indexes on the underlying
TTable object to reorder the display.
Of course, I can get called on a click or double-click, but the
table1.SelectedField.FieldIndex returns the number of the last column in
which data were selected, or 0 if DBG.Options.SelectRow = True
Would anyone have a suggestion on how to get this, as well as how to
change the appearance of selected column headers to suggest some are
clickable and others aren't ?
This would preferably be in Delphi 1, but Delphi 2 is acceptable. Delphi
3 is not.
Thanks.