datagridview设为某列为只读

2024-07-28 06:58:41
推荐回答(2个)
回答1:

datagridview1.Columns["列名称"].ReadOnly=true

回答2:

在每列或datagridview标签上加上readonly=true