DataGridView 控件默认的当前row 或者cell, 当按 Enter 键后当前 row 或 cell 自动切换到下一行,或下一个cell, 请问可否阻止他移动,也就是说,按 Enter 键让他什么也不做。
解决方案 »
- float 的疑问
- ado.net外键问题
- System.BadImageFormatException: IL 格式不正确
- 我使用StreamWriter向文本文件写汉字,怎么结果是乱码啊?
- string.substring(1,1)返回空还是0?
- 用java这样编码的。info = java.net.URLEncoder.encode(info, "UTF-8"); 在C#里面怎么解码啊?
- 大家帮我看看这段话,我总是看不懂,谢谢.
- C# 16 进制 转换成如下图乱码的格式
- 请帮我读一行代码吧(不好意思,我只有10分了)
- 各位大神,请教程序Exception_WasThrown的问题
- DATASET 序列化问题
- C#中 Point 是值类型,还是引用类型?
public class myDataGridView: DataGridView
{
protected override bool ProcessCmdKey(ref System.Windows.Forms.Message msg, System.Windows.Forms.Keys keyData)
{
if(msg.WParam.ToInt32() == (int) Keys.Enter)
{
return true;
}
return base.ProcessCmdKey(ref msg, keyData);
}
}