怎么我老是问问题啊???
我也看郁闷啊!!!
问题:
以前是敲下Enter键.光标下移...后来.听从论坛上的建议...重写了一下DataGridView类..实现啦
..实现方法:
using System;
using System.Collections.Generic;
using System.Text;
using System.Windows.Forms;
namespace 进销存试验版
{
    public class MyDataGridView :DataGridView
    {
        protected override void OnKeyDown(KeyEventArgs e)
        {
            if (e.KeyCode == Keys.Enter)
            {
                SendKeys.Send("{TAB}");
                e.SuppressKeyPress = true;
            }
            base.OnKeyDown(e);
        }
        protected override bool ProcessDialogKey(Keys keyData)
        {
            if (keyData == Keys.Enter)
            {
                keyData = Keys.Tab;
            }
            return base.ProcessDialogKey(keyData);
        }
    }
}
现在..当编辑状态时..本来有个Enter生成新窗体的事件..但是..编辑状态却不能够实现啦..
我该怎么办啊?



											
	    

	
