Unfortunately the FlexGrid is not the correct Active X Control to use for this purpose.
The FlexGrid control not only does not allow drag and drop but there is no other way for users to enter data in a FlexGrid control. To place data into the cells of a FlexGrid control, it is necessary to use code.
Is there any other way to achieve your objective without using drag-and-drop?
You can simulate Drag&Drop by using a label. When you mouse_down a cell you copy the content of the cell to the label. Then you drag the label around(label.drag 1). The problem is that when you let go(on the grid) the dragdrop event occurs and you have only the source(label) and the position within the grid at your disposal. So you have to calculate where you are.
Another solution is without dragging, but copy the data from the cell when you click it and paste the data when you click on another cell.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.