首页| JavaScript| HTML/CSS| Matlab| PHP| Python| Java| C/C++/VC++| C#| ASP| 其他|
购买积分 购买会员 激活码充值

您现在的位置是:虫虫源码 > ASP > Pivot 枢轴网格- Asp.Net MVC

Pivot 枢轴网格- Asp.Net MVC

资 源 简 介

翻译 maninwest@Codeforge 作者:Anurag Gandhi@CodeProject一个具有 pivot 选项的 Asp.Net MVC 的网格/报告控件。使用代码需要添加到 ReportControl  集的引用,之后就可以直接使用代码,如下所示:@Model.ReportWithPivot("", "ShopName", "SellingPrice", AggregateFunction.Sum, "ItemType", "ItemName")请注意你的模型应该是  IEnumerable 或者仅从 IEnumerable 衍生而来。如何工作ReportWithPivot 是 IEnumerable 对象的延伸方法,使用 RowField, DataField, Aggregate 函数和 ColumnFields 作为参数并返回一个 HTML 表,其中数据根据指定参数进行枢轴定位。public static HtmlString ReportWithPivot(this IEnumerable source, string cssClass, string rowField, string dataField, AggregateFunction aggregate, params string[] columnFields) where T

文 件 列 表

MvcReport
MvcReport.sln
MvcReport.v12.suo
MvcReport
packages
ReportControl
VIP VIP
0.185844s