【问题标题】:How to enable specific column in a devexpress gridview如何在 devexpress gridview 中启用特定列
【发布时间】:2019-03-01 02:11:49
【问题描述】:

我的代码似乎不起作用

gridView6.Columns["QueueID"].OptionsColumn.AllowEdit = true;

我也试过了

 int n = Convert.ToInt32(gridView6.Columns.Count.ToString());
        for (int i = 0; i < n; i++)
        {
            gridView6.Columns["QueueID"].OptionsColumn.AllowEdit = true;
        }

我已经尝试了这些代码,但是在执行我的 winform 后我的 gridview 仍然不允许编辑,还有其他方法可以使这个工作吗?因为我的代码没有发现任何错误

【问题讨论】:

  • 确保:gridView6.Columns["QueueID"].OptionsColumn.ReadOnly = false;

标签: c# .net winforms devexpress-gridcontrol


【解决方案1】:

如果视图的 ColumnView.Editable 属性设置为 true,则允许编辑生效。

检查您是否启用了ColumnViewOptionsBehavior.Editable Property

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2012-12-22
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2014-05-18
    • 1970-01-01
    • 1970-01-01
    • 2014-11-24
    相关资源
    最近更新 更多