110,534
社区成员
发帖
与我相关
我的任务
分享
TextBox txtCell;
bool isShow = false;
private void DataGridView_EditingControlShowing(object sender, DataGridViewEditingControlShowingEventArgs e)
{
if (isShow == false)
{
txtCell = new TextBox();
txtCell = (TextBox)e.Control;
txtCell.KeyDown += new KeyEventHandler(txtCell_KeyDown);
isShow = true;
}
}
TextBox txtCell;
bool isShow = false;
private void DataGridView_EditingControlShowing(object sender, DataGridViewEditingControlShowingEventArgs e)
{
if (isShow == false)
{
txtCell = new TextBox();
txtCell = (TextBox)e.Control;
txtCell.KeyDown += new KeyEventHandler(txtCell_KeyDown);
}
}