Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 373
  • Last Modified:

Gridview in MVC 4

Hi All,

I am developing a website using  visual studio 2013, MVC 4 and entity framework. I want to fill the grid view from database. How can i achieve this?

Please let me know the sample source code with best practices.

Thanks in advance
0
Jatin Nahar
Asked:
Jatin Nahar
1 Solution
 
Miguel OzSoftware EngineerCommented:
For ASP.NET MVC Razor you can use WebGrid: (Gridview is more for Web forms)
Link 1: Webgrid using EF
http://dotnetawesome.blogspot.com.au/2014/04/how-to-display-database-data-in-webgrid-in-mvc4.html
Link 2: some Webgrid  tricks like custom columns, paging and sorting
http://msdn.microsoft.com/en-us/magazine/hh288075.aspx
0
 
Jatin NaharAuthor Commented:
good
0

Featured Post

Get your problem seen by more experts

Be seen. Boost your question’s priority for more expert views and faster solutions

Tackle projects and never again get stuck behind a technical roadblock.
Join Now