tags:

views:

23

answers:

1

Hi,

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.

A: 

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

Rashmi Pandit