Hi,
I want to transfer Collection Data (Row & column) from Controller to view in ASP.net MVC. What is the best Approach?
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
Pradeep ShetRank #595 · 4K reputationPosted Jan 15, 2015, 11:48 PM EST
If you have Model collection you can, pass it as a parameter when calling View from action method.
Your view should be strongly type of type Model & use WebGrid control. It is easy to use & implement.
http://www.dotnet-tricks.com/Tutorial/mvc/GK2W110113-WebGrid-with-custom-paging-and-sorting-in-MVC4.html
Mark it as answered if it helped you.