1.   设置GridView.OptionsBehavior的Editable选项设为False。在这种情况下,整个Grid都是只读的。

2.   改变指定列的ReadOnly或AllowEdit属性。

3.   使用View的ShowingEditor事件,通过事件的e.Cancel参数禁止单元格编辑。

 

相关文章:

  • 2022-01-14
  • 2022-01-20
  • 2022-12-23
  • 2021-08-20
  • 2021-10-22
  • 2022-01-14
猜你喜欢
  • 2021-08-15
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-01-19
  • 2022-12-23
  • 2022-01-01
相关资源
相似解决方案