Wpf Datagrid 操作总结

1. 行选中时,.SelectedIndex可以获取行索引,多行选中可用 SelectedItems 2.单元格选中时,获取行索引可以用以下(Grid为DataGrid的对象) DataGridCellInfo selectedCell = Grid.SelectedCells.FirstOrDef

posted on 2023-05-05 14:48  wu.g.q  阅读(223)  评论(0编辑  收藏  举报

导航