谁能告诉我一些代码,告诉我如何在按 TAB 键时绕过 DatagridView 中的只读单元格?
最佳答案
private void dataGridView1_CellEnter(object sender, DataGridViewCellEventArgs e)
{
if (dataGridView1.CurrentRow.Cells[e.ColumnIndex].ReadOnly)
{
SendKeys.Send("{tab}");
}
}
关于c# - 按 TAB 键时绕过 DataGridView 中的只读单元格,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/751981/