Html.Grid:什么是IGridColumn.Attributes()?

时间:2010-08-18 08:55:02

标签: mvccontrib

我是MVC2的新手,我在我的视图中使用Html.Grid。

我想知道以下上下文中的Attributes()是什么以及它是如何使用的?

<%= Html.Grid<MyViewModel>(Model.MyPagedList)
        .Columns( column => {
             column.For(x => x.Amount).Attributes(...

我在Google上找不到多少。

感谢。

1 个答案:

答案 0 :(得分:0)

David的帮助下,我们发现这用于设置html属性。 参考:Html.Grid right align data in column