[英]How To get row and column clicked in WPF DataGrid
如何在MouseUp
事件中单击行和列?
You should be able to use the VisualTreeHelper.GetParent method to recursively search for the DataGridCell that contains the source of the MouseUp event. 您应该能够使用VisualTreeHelper.GetParent方法来递归搜索包含MouseUp事件源的DataGridCell。
From there you can get the column and row 从那里可以获取列和行
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.