【发布时间】:2016-07-05 19:47:50
【问题描述】:
如果我的条件为假,我需要将网格单元格设为只读。在 devexpress gridControl 中。
【问题讨论】:
-
注意:只有 Dev-express 知道要回答的人。
如果我的条件为假,我需要将网格单元格设为只读。在 devexpress gridControl 中。
【问题讨论】:
试试这个并根据需要改变条件
protected void ASPxGridView1_CellEditorInitialize(object sender, DevExpress.Web.ASPxGridView.ASPxGridViewEditorEventArgs e) {
if (ASPxGridView1.IsNewRowEditing) return;
if (e.Column.FieldName == "UnitPrice")
if (ASPxGridView1.GetRowValues(....) == ....)
e.Editor.ReadOnly = true;
}
【讨论】: