DGV设置单元不可编辑 dgvUnitInfo.Grid.Rows[i].Cells[nameof(DicDrugUnit.DgUnit)].Activation = Activation.NoEdit;