private void dataGridView1_KeyPress(object sender, KeyPressEventArgs e)
{
if (dataGridView1.CurrentCell.ColumnIndex == 5 || dataGridView1.CurrentCell.ColumnIndex == 10)
{
aTimer.Interval = 850;
aTimer.Start();
string pwd = "*";
pass.Add(e.KeyChar);
dataGridView1.CurrentCell.Value = pwd;
dataGridView1.CurrentCell.Value = GridView1_PreRender1(dataGridView1.CurrentCell.Value.ToString());
}
}
我没有收到任何错误,但是在运行时,我单击哪个网格单元格并输入值 KeyPress 没有采取任何行动,这让我很生气。我太绝望了,任何帮助都会很棒。