开发者

mvccontrib gridview, using new mvc3 syntax issue

开发者 https://www.devze.com 2023-02-09 03:21 出处:网络
I\'ve upgraded from mvc 2 to mvc 3. I\'ve grabbed the new mvc contrib dll\'开发者_JAVA百科s for mvc 3 from here

I've upgraded from mvc 2 to mvc 3. I've grabbed the new mvc contrib dll'开发者_JAVA百科s for mvc 3 from here http://mvccontrib.codeplex.com/releases

I'm having some issues with the new mvc grid syntax. See attached.

mvccontrib gridview, using new mvc3 syntax issue

Does anyone know the new syntax?


@{Html
    .Grid(Model.PagedList)
    .Columns(column =>
    {
        column.For(cust => cust.Id);
        column.For(cust => cust.Surname);
        column.For(cust => cust.DateOfBirth);
    })
    .Render();
}
0

精彩评论

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