标签:
找到GridView的CellEditorInitalize事件。
protected void agv_main_CellEditorInitialize(object sender, ASPxGridViewEditorEventArgs e) { if (e.Column.Grid.IsNewRowEditing //新增时 && e.Column.Name.Equals("SIGNTYPE", StringComparison.OrdinalIgnoreCase) //确定列 ) { e.Editor.ReadOnly = true; } }
标签:
原文地址:http://www.cnblogs.com/zeroone/p/4479841.html