Bind Dropdown list from Database and show in GridView
How to bind drop down list in mvc using Sql server as Database and show the details in Gridview
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Vincent Maverick DuranoPosted Apr 26, 2015, 3:03 PM
GridView does not exist in MVC - What you can do is to load your grid data via AJAX call and generate the rows on the fly based on the value selected from the list. Or you could use WebGrid like this one:
http://www.authorcode.com/filtering-records-in-webgrid-using-dropdownlist-in-mvc/
Here's another one example: http://www.c-sharpcorner.com/UploadFile/abhikumarvatsa/filter-records-in-mvc/
Abhineet SrivastavaPosted Apr 16, 2015, 1:34 PM
ramya bharathPosted Apr 16, 2015, 12:38 PM
For binding dropdownlist here is a examplehttp://www.c-sharpcorner.com/UploadFile/4d9083/binding-dropdownlist-in-mvc-in-various-ways-in-mvc-with-data/