Pivot Grid in Asp.Net MVC
2016-08-23
0 0 0
no vote
Other
Earn points
Translated by maninwest@Codeforge Author:Anurag Gandhi@CodeProject
A Grid/Report control in Asp.Net MVC with pivot option
Using the code
To use the code, you just need to add the reference to the ReportControl assembly. Then, you can directly use the code in your view as follows:
@Model.ReportWithPivot("", "ShopName", "SellingPrice", AggregateFunction.Sum, "ItemType", "ItemName")
Please note that your model should be IEnumerable or derrived from IEnumerable only.
How it works
To understand the working of pivot related stuff, please have a look over my previous article: Pivoting DataTable Simplified. Further to that, ReportWithPivot is an extension method to an IEnumerable object which takes RowField, DataField, Aggregate Function and ColumnFields as parameter an
javascript
pivot
aspnetmvc
网格
Related Source Codes
WeChat mini program development
0
0
no vote
Image cropping and compression processing on mobil
0
0
no vote
Classic Interview Questions for Digital City Front
0
0
no vote
3D building large screen display
0
0
no vote
six million six hundred and sixty-six thousand six
0
0
no vote
No comment