DevExpress 只允许修改指定列
![](https://images.cnblogs.com/OutliningIndicators/ContractedBlock.gif)
gridView1.OptionsBehavior.Editable = true; gridView1.OptionsBehavior.ReadOnly = false; foreach (GridColumn c in gridView1.Columns) { if (c.Name == colAmount.Name) { c.OptionsColumn.ReadOnly = false; c.OptionsColumn.AllowEdit = true; } else { c.OptionsColumn.ReadOnly = true; c.OptionsColumn.AllowEdit = false; } }