c#wpf获取DataGrid值 - 博客频道 - CSDN.NET
name="rowIndex">行索引 /// 列索引 /// <returns></returns> private DataGrid...(dataGrid1.SelectedItems.Count > 0) { int i = dataGrid1.SelectedInde...
WPF DataGrid Current Row Index
row index, I tried with DataGrid.SelectedIndex but it always returns -1....public static int GetRowIndex(DataGridCell dataGridCell) { // Use reflection...