【问题标题】:How to to sort groups by their count in GridControl如何按组在 GridControl 中的计数对组进行排序
【发布时间】:2013-07-05 13:15:53
【问题描述】:

While using DevExpress.XtraGrid.GridControl I am trying do the following, When a column is selected and dragged to the upper part of grid (i.e grouping by that column) I want the groups to be sorted by their member count.我什至没有找到关于如何开始这样做的来源。我不确定这是否可能。

我得到了什么:(列的名称是消息)

Message:(Count=2) X

Message:(Count=7) U

Message:(Count=5) Z

我想要什么:

Message:(Count=7) U

Message:(Count=5) Z

Message:(Count=2) X

【问题讨论】:

    标签: c# winforms devexpress devexpress-windows-ui


    【解决方案1】:

    我认为您应该处理网格的StartGrouping 事件(更多信息here)。然后我认为这是通过设置索引来手动对分组行进行排序的问题。

    【讨论】:

      猜你喜欢
      • 2013-01-20
      • 2019-11-09
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2015-08-28
      • 2011-02-08
      • 1970-01-01
      相关资源
      最近更新 更多