Drag and Drop in a TStringGrid
Posted on 2007-04-06
I've got a new application with a TStringGrid that contains simple text. I'd like to be able to swap the contents of two cells with a simple drag and drop but this seems to be a control that doesn't behave as expected.
When I click on a cell, the cell highlights by a double line around the cell. If I click on another control the cell background changes color and looks like a normal highlighted cell.
I cannot drop to a cell. The OnClick() method is called and I can clearly see that I'm entering the cell, but the OnDragDrop() method is never called.
Any thoughts on how to use this control would be appreciated.