日期:2014-05-17 浏览次数:20717 次
protected override bool ProcessCmdKey(ref System.Windows.Forms.Message msg, System.Windows.Forms.Keys keyData)
{
switch (keyData)
{
case System.Windows.Forms.Keys.Enter:
if (this.Rows.Count > 0)
{
int i = this.CurrentRow.Index;
if (this.Rows.Count > i + 3)
{
this.Rows[i + 3].Cells[0].Selected = true;
}
}
return true;
}
return base.ProcessCmdKey(ref msg, keyData);
}