标签: mvccontrib
我是MVC2的新手,我在我的视图中使用Html.Grid。
我想知道以下上下文中的Attributes()是什么以及它是如何使用的?
<%= Html.Grid<MyViewModel>(Model.MyPagedList) .Columns( column => { column.For(x => x.Amount).Attributes(...
我在Google上找不到多少。
感谢。
答案 0 :(得分:0)
在David的帮助下,我们发现这用于设置html属性。 参考:Html.Grid right align data in column