如何为数据网格中的每个列实现计数记录功能? [英] HOW to implement count record functionality for each column in a data grid ?

查看:73
本文介绍了如何为数据网格中的每个列实现计数记录功能?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个wpf数据网格。我有10列。我需要在数据网格的末尾显示一个摘要行。



它应该显示数据网格中每列末尾每列的记录数。我需要下面的内容。



Column1 Column2 Column3

test 1 NULL

test1 2 6

test2 4 0



总计3 3 2



我尝试过:

I have a wpf datagrid. I have 10 columns in that. I need to show a summary row at the end of the data grid.

It should show record count of each column at the end of each column in the data grid. I need something like below.

Column1 Column2 Column3
test 1 NULL
test1 2 6
test2 4 0

Total 3 3 2

What I have tried:

推荐答案

我建​​议从这里开始:教程15:在GridView的页脚中显示摘要信息 [ ^ ]



这篇文章也许有帮助:WFF DataGrid实例 [ ^ ]
I'd suggest to start here: Tutorial 15: Displaying Summary Information in the GridView's Footer[^]

This article might be helpful too: WPF DataGrid Practical Examples[^]


这篇关于如何为数据网格中的每个列实现计数记录功能?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆