ASPxgridview 编辑列初始化事件
在初始化编辑咧的时候,给其赋值或者是disable等等....
贴上代码
protected void master_CellEditorInitialize(object sender, ASPxGridViewEditorEventArgs e) {if (e.Column.FieldName.Equals("XXX")) { e.Editor.ClientEnabled = false; e.Editor.DisabledStyle.ForeColor = System.Drawing.Color.Black; } if (e.Column.FieldName.Equals("ZZZ")) { e.Editor.ClientEnabled = false; e.Editor.DisabledStyle.ForeColor = System.Drawing.Color.Black; } if (e.Column.FieldName.Equals("CCC")) { e.Editor.ClientEnabled = false; e.Editor.DisabledStyle.ForeColor = System.Drawing.Color.Black; } if (e.Column.FieldName.Equals("VVV")) { e.Editor.ClientEnabled = false; e.Editor.DisabledStyle.ForeColor = System.Drawing.Color.Black; } }
年轻过得闲,以后被人嫌...
年轻累不死....