我如何知道用户将某些东西放到了 TcxGrid 的哪一行?
用户正在我的 TcxGrid 组件上拖动一些东西。我如何知道它被放到哪一行?
The user is dragging something over my TcxGrid component. How can I know which row it gets dropped on?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
下面是位于 DevExpress 站点上的一个示例,用于在 cxGrid 中进行拖放。我使用相同的技术来实现两个 cxGrid 之间的拖放。
如何在网格内实现拖放
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.
How to implement drag-and-drop inside a Grid
您应该从放置事件中获得一些反馈,或者使用鼠标弹起事件,然后使用许多 Dev Express 调用之一从 X、Y 位置获取网格坐标。我想,临时的。
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.