Click here to Skip to main content
15,886,842 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
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
Posted
Comments
ZurdoDev 29-Feb-12 8:13am    
Have you read the documentation? And what do you mean? You just want to overlay some text?
Arasu Rajendran 29-Feb-12 9:30am    
yes i just want to display the 'date' which i retrieved from db into my data source.
Arasu Rajendran 29-Feb-12 9:31am    
i tried the suggestion from devexpress by setting the field summarytype to min or max but it din worked for me.

1 solution

C#
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.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900