ASP.net
Awesome
Learn
Forum
Buy
Demos
Sign In
☾
☀
Switch to
Dark
Light
Mode
this site works best with javascript enabled
Ask Question
Example of getting data from a file and populate mvc grid?
Title:
B
I
{code}
?
Do you have any examples of getting data from a file and populate grid columns?
Save Changes
Cancel
CuLacGionTan
asked at 18 Dec 2015
do you need to display with one grid data from multiple arbitrary format files, or some predefined columns data
at 18 Dec 2015
Omu
I want to use a text file to store values from a grid and also be able to read data from the file to populate the grid. The grid should have multiple columns. For example grid: userInformation has 3 columns: Name, address, Age. The names are predefined and the users should be able to enter information for address and Age. After they're done and click save, the info needs to be saved to a text file so later on, if the user wants to load the infor, they just need to load the text file and the grid would be populated.
at 21 Dec 2015
CuLacGionTan
Text file extension is just one example, if you find other extensions that might work better, please recommend them to me. Thanks!!
at 21 Dec 2015
CuLacGionTan
the way you're going to store and get the data is up to you, now I presume that your data storage won't support linq (the grid uses linq) so you will need to do the sorting/paging yourself, that you can learn from this demo: http://demo.aspnetawesome.com/GridDemo/CustomQuerying
at 21 Dec 2015
Omu
Answers
please
Sign In
to leave an answer
By accessing this site, you agree to store cookies on your device and disclose information in accordance with our
cookie policy
and
privacy policy
.
OK