I am trying to bind database to Grid in MVC5 application, its my first attempt.
Created Model class, and Controller. My model is returning data table. and i would like to bind the data in the grid. Below is my controller code which will return list.
List<SystemManagmentModel> fileStores = new List<SystemManagmentModel>();
SystemManagmentModel fileStore = new SystemManagmentModel();
fileStores.Add(fileStore);
return View(fileStores);
I am able to add Model in the view @model IEnumerable
From here i am unable to understand how to create grid and how to bind this list.I have selected Razor view Engine.
can any body show some sample code to Bind grid options in MVC Thank you