Skip to content

How to save listview items in txt file and load it in listview again if we want in WPF? #7453

Answered by miloush
VahidEra asked this question in Q&A
Discussion options

You must be logged in to vote

Like in your previous question, you have to use the type you created. For saving you do For Each myItem as MyRowData in ListView1.Items and then you can write out myItem.name and myItem.address. And for loading you add New MyRowData with {.name = lineArray(0), .address = lineArray(1)}

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@VahidEra
Comment options

Answer selected by VahidEra
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants