0

While using DevExpress.XtraGrid.GridControlI am trying do the following, When a column is selected and dragged to the upper part of grid (ie 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
4

1 回答 1

0

我认为你应该处理StartGrouping网格事件(更多信息在这里)。然后我认为这是一个手动排序分组行的问题,方法是设置它们的索引来给出行的计数。

于 2013-07-05T15:57:02.940 回答