Html.Grid: What is IGridColumn.Attributes()?
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
精彩评论