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;
int row=this.dataGrid1.CurrentCell.RowNumber;
System.Windows.Forms.DataGridCell dc=new DataGridCell(col,row+1);
this.dataGrid1.CurrentCell=dc;
{
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);
}
}
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
如何在DataGrid中引用﹐能否給個例了?
謝謝﹗﹗﹗﹗