Dan14021
Dan14021

Reputation: 659

Storing Data from GridView in WinRT

I have created a GridView layout that starts out empty. Users then enter data that and a GridViewItem is created for each entry. The data is bound to a collection in the code-behind.

What is the best way to save this collection so that it persists when the app is closed and reopened?

I am currently using SQLite but I was hoping there was something easier that would allow me to store the actual objects instead of having to convert them into strings for the database.

Upvotes: 0

Views: 168

Answers (1)

Deani Hansen
Deani Hansen

Reputation: 722

It really depends on how much data it is you want to save and how you want to use it. If it's not thousands of objects, saving it locally inside the app will be enough for you. There is a great helper class on CodePlex that allows this, you can find it here: Link to codeplex.

The helper class is generic, so you can save and load all kinds of objects very easily without the effort of creating a database. It's using async and it supports storage and load of data using the RoamingFolder, TemporaryFolder & LocalFolder storage folders

Upvotes: 1

Related Questions