The user is dragging something over my TcxGrid component. How can I know which row it gets dropped on?
Asked
Active
Viewed 4,217 times
3
-
1I'm sorry, but this question doesn't make sense – David Heffernan Dec 15 '10 at 19:27
-
Not everyone's first language is English :( – Despatcher Dec 15 '10 at 20:11
-
@Despatcher That is true. The question still doesn't make sense though!! – David Heffernan Dec 15 '10 at 20:45
-
Thanks Rob, my English is not good enough, I am learning it – Douglas Lise Dec 16 '10 at 13:42
-
1Albeit the description is not very detailed, the question makes perfect sense to me. – Tuncay Göncüoğlu Mar 14 '15 at 11:29
2 Answers
2
Here is an example located on the DevExpress site for a drag and drop inside a cxGrid. I used the same technic to implement a drag and drop between two cxGrids.

evdkraan
- 171
- 1
- 4
-
Thanks, this example solved my problem, the GridRecord is what I looked for: HT := ViewInfo.GetHitTest(X, Y); ReorderRows(TcxGridTableView(GridView), TcxGridRecordCellHitTest(HT).GridRecord); – Douglas Lise Dec 16 '10 at 10:15
1
You Should get some feedback from the drop event or use the Mouse up event then get the grid co-ordinates from the X,Y positions using on one the many Dev express calls. I think, off-hand.

Despatcher
- 1,745
- 12
- 18