C# 如何获取WPF datagrid中的所有选定单元格
我有一个WPF数据网格,我想获得网格中所有选定的单元格,我可以通过循环所有项目来实现,那么有没有内置的方法来实现呢 我在DataGrid中设置了两个属性:C# 如何获取WPF datagrid中的所有选定单元格,c#,wpf,datagrid,selection,C#,Wpf,Datagrid,Selection,我有一个WPF数据网格,我想获得网格中所有选定的单元格,我可以通过循环所有项目来实现,那么有没有内置的方法来实现呢 我在DataGrid中设置了两个属性: SelectionMode="Extended" // for multiple selection SelectionUnit="Cell" //row should not be selected but cell should be 谢谢。我知道Grid.selecteditem适用于行选择;我认为它应该也适用于单元格。我
SelectionMode="Extended" // for multiple selection
SelectionUnit="Cell" //row should not be selected but cell should be
谢谢。我知道
Grid.selecteditem
适用于行选择;我认为它应该也适用于单元格。我知道Grid.selecteditem
适用于行选择;我认为它应该也适用于单元格。DataGrid具有属性。这就是你要找的吗?数据网格有属性。这就是你要找的吗