Is there a way to prevent column header dragging (re-ordering) on a FireMonkey 2 TGrid?
The THeader instance is private to the TGrid class, and I can't find any other property that controls this. The default of THeaderItem.DragMode is dmAutomatic (for some unfathomable reason).
Short of creating a new TGrid descendant, or breaking the THeader out of the grid, I can't see how to get DragMode back to dmManual.
You can access the
FHeader
private field using the RTTI, and from here you can write a method to set the DragMode of the Headers.Try this code
And use like so