Pivot Grid in Asp.Net MVC
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
Introduction to Vue
0
0
no vote
XxxsaAasdaDAdadaDAdaDD
0
0
no vote
VR art resource package
0
0
no vote
Free planning website
0
0
no vote
JQ + CSS Gobang games
0
0
no vote
No comment