devexpress - 如何计算 devexpress xtragrid 的行数

标签 devexpress

我正在使用Devexpress XtraGrid Control,在这里我可以计算网格页脚中的行数。但为此我需要在网格中设置至少一列的 SummeryItem 的 count 属性。我不想这样做。

我想要计算 xtraGrid 中的行数,而不引用网格中的任何一列。我只想显示行数。当用户过滤该行时,此时计数也需要更改。

是否有任何选项可以在组标题面板中显示此号码?

最佳答案

我将使用 BaseView.RowCount 获取行数并在 CustomDrawGroupPanel 事件中绘制它。

关于devexpress - 如何计算 devexpress xtragrid 的行数,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/2056635/

相关文章:

c# - 具有动态列和行的 DevExpress WPF GridControl

c# - Button中的ComboBox,如何将Combobox的 "SelectedItem"作为Button的CommandParameter传递?

delphi - “十字线”-ExpressQuantumGrid 中选定单元格的突出显示

c# - 运行时的 XRLabel.Angle

wpf - 仅将默认 ControlTemplate 应用于一个控件

c# - Devexpress ASPxGridView GetSelectedFieldValues 无法获取值

c# - Xtra报告 : An object assigned to the DataSource property cannot be used

c# 扩展方法和属性

c# - DevExpress MVC GridView BindToLINQ() 选择了太多数据

c# - 如何获取DevExpress XtraGrid选中的行值?