DataGrid中有单元格编缉修改后回车自动到了下一行不是下一单元格? 你用Tab键就是到下一行呀应该没有这个属性吧 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 是的呀 你可以试试A改为B->回车->是不是到了下一行不过我以搞定了 protected override bool ProcessCmdKey(ref Message msg,Keys keyData) { bool m_ret=false; if (keyData==Keys.Enter) { if ( this.ActiveControl is System.Windows.Forms.DataGridTextBox) { this.newDataGrid1.EndEdit(this.newDataGrid1.Columns[this.newDataGrid1.CurrentColumnName],this.newDataGrid1.CurrentRowIndex,false); } System.Windows.Forms.SendKeys.Send("{TAB}"); } else m_ret=base.ProcessCmdKey(ref msg,keyData); return m_ret; } C# 重新给数组定义长度,怎么解决 asp.net mvc怎么输出多个数据源 系统还原后,打开VS出现这个问题,大家帮忙看看 急求 根据URL地址得到一个网页的html原文档函数 100分,求VSS傻瓜教程,(主要求与.net2003配合使用的部分),越详细越好! 【急】SortedList 泛型 自定义排序 请教一个问题,在线等待???? 多线程下载文件的问题 DirectX9 SDK 与VS.net2003的安装问题 C#WinForm中怎么获取动态添加的panel句柄? 程序不能运行,急!!! winform 中如何将附件(如图片、word)等存入数据库
protected override bool ProcessCmdKey(ref Message msg,Keys keyData)
{
bool m_ret=false;
if (keyData==Keys.Enter)
{
if ( this.ActiveControl is System.Windows.Forms.DataGridTextBox)
{
this.newDataGrid1.EndEdit(this.newDataGrid1.Columns[this.newDataGrid1.CurrentColumnName],this.newDataGrid1.CurrentRowIndex,false);
}
System.Windows.Forms.SendKeys.Send("{TAB}");
}
else
m_ret=base.ProcessCmdKey(ref msg,keyData);
return m_ret;
}