更新时间:2021-09-27 06:41:59
您可以直接使用下面的代码来获取所选单元格的列索引。
You can use below code directly to get selected cells column index.
int index = datagrid.SelectedCells[0].Column.DisplayIndex;
如何通过WPF DataGrid中的DataGrid Header CheckBox选择列的所有CheckBox
如何将两个列表绑定到两列Wpf DataGrid?
如何将 WPF DataGrid 绑定到可变数量的列?
如何将集合绑定到WPF中的datagrid列
在WPF中,如何确定控件所在的网格中的列/行?
WPF-如何在datagrid中获取选定的行索引?
如何根据属性隐藏wpf datagrid列
WPF DataGrid:如何在DataGrid中迭代获取行和列?
WPF DataGrid:如何在 DataGrid 中迭代以获取行和列?
如何在WPF DataGrid模板列中设置显示列索引?