mvccontrib gridview, using new mvc3 syntax issue

1.1k views Asked by At

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?

1

There are 1 answers

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