public GridColumn(GridModel gridModel, GridColumnAttribute att, string propertyName, int order)
 {
     this.GridModel = gridModel;
     this.ColumnAttribute = att;
     this.PropertyName = propertyName;
     this.Order = order;
 }
Exemple #2
0
 public static IHtmlString GridFor2(this HtmlHelper html, Type modelType, IEnumerable dataSource, string templateName)
 {
     return(new HtmlString(html.Partial(templateName, GridModel.CreateGridModel(modelType, dataSource, html.ViewContext)).ToString()));
 }