Last post Feb 20, 2018 05:23 AM by Brando ZWZ
Feb 15, 2018 08:37 PM|slimbunny|LINK
In MVC 5 #; How do I change the data in the Grid based on the changes of the drop down list?
Select One <--- Example drop-down list
Grid - By default the Grid show ALL
My is to accomplish a changing grid based on the changes with the drop down list.
Feb 16, 2018 04:21 AM|bruce (sqlwork.com)|LINK
Feb 16, 2018 05:02 AM|Brando ZWZ|LINK
Do you mean you want to create the grid in asp.net core MVC or asp.net MVC5?
Notice: asp.net core MVC is not as same as asp.net MVC5, the codes is not same.
According to your description, there are multiple way to achieve your requirement by using jquery, MVC grid and so on.
I suggest you could try to use DevExtreme datagrid which could easily achieve your requirement.
More details about how to install it and use it ,you could refer to below article.
Dropdown gird demo:
About how to install it.
Feb 16, 2018 02:05 PM|slimbunny|LINK
Feb 20, 2018 05:23 AM|Brando ZWZ|LINK
Thank you for your advice but it must be hard code I cannot use In
I am using ASP.NET MVC5
As far as I know, the DevExtreme datagrid also have MVC version.
You could follow below article to know how to use it in asp.net MVC.