日期:2014-05-16  浏览次数:20842 次

wpf datagrid 如何按回车跳到下一格,而不是下一行
wpf datagrid 如何按回车跳到下一格,而不是下一行!
------解决方案--------------------

if (e.Key == Key.Enter)
            {
                Int32 row= dataGrid1.Items.IndexOf(dataGrid1.CurrentItem);
                Int32 Col = dataGrid1.Columns.IndexOf(dataGrid1.CurrentColumn);
            }