获取 DataGrid 选中的单元格的信息
DataGridCellInfo cell_Info = this.studentTable.SelectedCells[0];
studentTableItem student_Info = cell_Info.Item as studentTableItem;
studentTableItem 为一个自定义类 单元格中的数据绑定的是这个自定义类
获取 DataGrid 选中的单元格的信息
DataGridCellInfo cell_Info = this.studentTable.SelectedCells[0];
studentTableItem student_Info = cell_Info.Item as studentTableItem;
studentTableItem 为一个自定义类 单元格中的数据绑定的是这个自定义类
转载于:https://www.cnblogs.com/lipengxu/p/10265133.html