如下设置就可以了:
DataGrid.TabStop = false;
这样就不会切换焦点了

解决方案 »

  1.   

    我也是那样设置的呀,可惜不还是可以,况且我针对的是某个列,而不是
    datagrid
      

  2.   

    override ProcessCmdKey, see
    5.61 How can I make the Enter Key behave like the Tab Key and move to the next cell?
    http://www.syncfusion.com/FAQ/WinForms/FAQ_c44c.asp#q902qoverride ProcessKeyPreview, validate the data inside, return false if the data is invalid
    5.31 How can I prevent the Enter key from moving to the next cell when the user is actively editing the cell and presses Enter?
    http://www.syncfusion.com/FAQ/WinForms/FAQ_c44c.asp#q791q