문제

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

I'm having some issues with the new mvc grid syntax. See attached. enter image description here

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();
}
라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top