Click here to Skip to main content
16,012,223 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
C#
@{var grid = new WebGrid((IEnumerable<dynamic>) Model);

@grid.GetHtml(columns:grid.Columns(grid.Column("Name","Given Name")))

the abobe code is in in the docket.cshtm file.( mvc 3 razor view)

a datasource should be bound before this performance. How do i do it... what is the exact code.
Posted
Updated 5-Jan-12 8:24am
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900