DevExpress设置单元格不可编辑,选单元格则选中一行,目的是只展示数据,不提供修改功能:
DevexpressGridControl禁止点击单元格修改
foreach (GridColumn item in gridView1.Columns)
{
item.OptionsColumn.ReadOnly = true;
item.OptionsColumn.AllowEdit = false;
//禁止单元格获取焦点
item.OptionsColumn.AllowFocus = false;
}