int col=this.dataGrid1.CurrentCell.ColumnNumber;
int row=this.dataGrid1.CurrentCell.RowNumber;
System.Windows.Forms.DataGridCell dc=new DataGridCell(col,row+1);
this.dataGrid1.CurrentCell=dc;

解决方案 »

  1.   

    public class MyDataGrid : DataGrid
    {
    protected override bool ProcessCmdKey(ref System.Windows.Forms.Message msg ,System.Windows.Forms.Keys keyData)
    {
    if(msg.WParam.ToInt32() == (int)Keys.Enter)
    {
    SendKeys.Send("{Tab}");
    return(true);
    }
    return base.ProcessCmdKey(ref msg,keyData);
    }
    }
      

  2.   

    http://www.syncfusion.com/faq/winforms/search/902.asp关于DataGrid的FAQ可以在这里看看:
    http://search.atomz.com/search/?sp-i=1&sp-q=DataGrid&sp-a=sp1001decd&sp-f=iso-8859-1&b1.x=38&b1.y=7
      

  3.   

    TO cqnimin:
       如何在DataGrid中引用﹐能否給個例了?
    謝謝﹗﹗﹗﹗