如何在Asp.Net中的Pivotgrid DataArea中显示日期或字符串值 [英] How to display date or string value in Pivotgrid DataArea in Asp.Net

查看:149
本文介绍了如何在Asp.Net中的Pivotgrid DataArea中显示日期或字符串值的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



我如何在ASP.Net中的devexpressivotgrid的数据区域中显示字符串或日期值

我正在搜索这一段时间,答案将对我有很大帮助

谢谢与问候

Arasu

Hi,

How i can display string or date value in devexpress pivotgrid''s dataarea in ASP.Net

I am searching for this quite some time,answer will help me greatly

Thanks and Regards

Arasu

推荐答案

This issue is connected with the fact that the pivot grid control is meant for displaying summarized and grouped data. This means that each cell can represent several rows in a corresponding data source. This behavior is well explained in the Information Presentation Basics help topic. Pivot grid provides several builds in summary calculation methods, Sum, Average, Count, Min, Max .... By default, all values are summarized. The String and DateTime types do not support arithmetic addition, and only the "0" sign is shown instead of summary values. There is an easy solution to this problem. It is only necessary to set the PivotGridFieldBase.SummaryType property of the corresponding field to Min or Max. In this case, the minimum or maximum corresponding value is displayed. In some situations, it is necessary to perform operations that are not allowed by default. E.g. Convert data from one format to another before summarizing. In this case, it is necessary to set the PivotGridFieldBase.SummaryType property to Custom and calculate summary values manually, via the PivotGridControl.CustomSummary event.


这篇关于如何在Asp.Net中的Pivotgrid DataArea中显示日期或字符串值的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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