实现效果:
知识运用:
DataGridView控件的AllowUserToAddRows
AllowUserDeleteRows和ReadOnly属性
实现代码:
private void btn_no_Click(object sender, EventArgs e) { dataGridView1.AllowUserToAddRows = false; dataGridView1.AllowUserToDeleteRows = false; dataGridView1.ReadOnly = true; }
原文地址:https://www.cnblogs.com/feiyucha/p/10204933.html
时间: 2024-10-10 12:37:08