设置DataGrid的MouseDoubleClick事件代码//DataGrid鼠标双击事件Private void dataGrid_MouseDoubleClick(object sender, MouseButtonEventArgs e) { if(this.dat ...
设置DataGrid的MouseDoubleClick事件
代码
//DataGrid鼠标双击事件Private void dataGrid_MouseDoubleClick(object sender, MouseButtonEventArgs e) { if(this.dataGrid.SelectedIndex == -1) { return; } DataGridRow row = (DataGridRow)dataGrid.ItemContainerGenerator.ContaineFormIndex(this.dataGrid.SelectedIndex); }
原标题:WPF DataGrid 鼠标双击选中的DataGridRow及Row数据
关键词:wpf
*特别声明:以上内容来自于网络收集,著作权属原作者所有,如有侵权,请联系我们:
admin#shaoqun.com
(#换成@)。