I'm sorting a TDBGrid
using it's OnTitleClick
event, but I don't want to sort the grid when the user just arranges his columns.
Is it possible to detect if the column was moved / is moving when the OnTitleClick
event fires?
OnStartDrag
is not fired, because the drag and drop seems to be internal to the grid component.
The only thing I can think of right now is to set a flag when OnColumnMoved
is fired and ignore the next execution of the OnTitleClick
event.
Is this a good idea or is there a better way?