0

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.

Rashmi Pandit
  • 23,230
  • 17
  • 71
  • 111

1 Answers1

0

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

Community
  • 1
  • 1
Rashmi Pandit
  • 23,230
  • 17
  • 71
  • 111