【发布时间】:2019-01-10 13:45:29
【问题描述】:
我有一个ObjectListView,我正在显示组及其对应的项目数。我需要更改格式,所以我做了:
dlvList.GroupWithItemCountFormat = "{0} ({1} records)";
dlvList.GroupWithItemCountSingularFormat = "{0} (1 record)";
但是,上面的格式被忽略,默认格式继续进行。
我还需要设置其他属性吗?
【问题讨论】:
-
我认为你有 ShowItemCountOnGroups = true;只用这 3 行就对我有用。
-
@ThomasN 是的,我已将其设置为 true。
标签: c# winforms objectlistview