Solved

Gridview in MVC 4

Posted on 2015-01-16
2
319 Views
Last Modified: 2015-01-29
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
Comment
Question by:Jatin Nahar
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 36

Accepted Solution

by:
Miguel Oz earned 500 total points
ID: 40555631
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
 

Author Closing Comment

by:Jatin Nahar
ID: 40579158
good
0

Featured Post

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Today I had a very interesting conundrum that had to get solved quickly. Needless to say, it wasn't resolved quickly because when we needed it we were very rushed, but as soon as the conference call was over and I took a step back I saw the correct …
This article shows how to deploy dynamic backgrounds to computers depending on the aspect ratio of display
A short tutorial showing how to set up an email signature in Outlook on the Web (previously known as OWA). For free email signatures designs, visit https://www.mail-signatures.com/articles/signature-templates/?sts=6651 If you want to manage em…

730 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question