找到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;
            }
        }

 

相关文章:

  • 2022-12-23
  • 2021-09-20
  • 2021-11-05
  • 2021-11-14
  • 2022-12-23
  • 2021-06-14
  • 2021-12-04
猜你喜欢
  • 2021-11-14
  • 2021-04-06
  • 2022-12-23
  • 2022-12-23
  • 2021-12-24
  • 2021-11-14
相关资源
相似解决方案