开发者

Html.Grid: What is IGridColumn.Attributes()?

开发者 https://www.devze.com 2023-01-11 20:57 出处:网络
I am new to MVC2 and I am using Html.Grid on my view. I would like to know what Attributes() is in the following context and for what purpose and how it is used?

I am new to MVC2 and I am using Html.Grid on my view.

I would like to know what Attributes() is in the following context and for what purpose and how it is used?

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

I 开发者_高级运维couldn't find much on Google.

Thanks.


With David's help figured out that this is used to set the html attributes. Ref: Html.Grid right align data in column

0

精彩评论

暂无评论...
验证码 换一张
取 消