【问题标题】:How to disable the Footer summary for certain columns?如何禁用某些列的页脚摘要?
【发布时间】:2010-04-21 15:08:11
【问题描述】:

我正在使用 devexpress 网格,我不想为字符串列提供任何页脚或组摘要。用户可以通过访问页脚菜单来修改用于页脚摘要的公式。我希望对字符串列禁用此菜单,因为提供的摘要对字符串列没有意义。有什么想法吗?

【问题讨论】:

    标签: grid devexpress footer summary


    【解决方案1】:

    对于所有对解决方案感兴趣的人: 处理网格的 ShowGridMenu 事件:

    private void MainView_ShowGridMenu(object sender, GridMenuEventArgs e)
    {
        Column col;
        if (e.MenuType == GridMenuType.Summary && e.HitInfo.Column != null && e.HitInfo.Column.ColumnType == typeof(string))
        {
            e.Allow = false
        }
    }
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2018-12-09
      • 1970-01-01
      • 2021-08-09
      • 1970-01-01
      • 1970-01-01
      • 2011-01-31
      • 1970-01-01
      • 2019-05-27
      相关资源
      最近更新 更多