Click here to Skip to main content
15,885,365 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
See more:
Good Day Everyone

I have created a Windows -Forms - application, the application, list books, and audio(tapes, vinyl's) and there details and passes the values received from the user, to a ListView Control. I want to save the values passed to the LIstView control, in a text File, and then be able to load that textFile's with the values, back to ListView when application loads.

I am using visual studio 2012, and writing in C#.

any help would really be appreciated.

Thank you
Posted
Comments
Afzaal Ahmad Zeeshan 19-Aug-15 15:10pm    
Any attempt that you made to complete this? We do not write codes from scratch.

In other words you want serialize the ListView, but, please don't. See this Code Project Q&A: "[C#] serializing and deserializing a ListView"[^].
 
Share this answer
 
Comments
Maciej Los 19-Aug-15 15:22pm    
Good point, 5!
Sergey Alexandrovich Kryukov 19-Aug-15 15:37pm    
5ed.
—SA
CPallini 19-Aug-15 15:53pm    
:-) Thanks to the original author.
Sergey Alexandrovich Kryukov 19-Aug-15 15:54pm    
:-)
I'd suggest to read this: Custom Data Binding, Part 1[^]. This is very interesting article, which might help you to understand how to bind data to ListView control.
 
Share this answer
 
Comments
Sergey Alexandrovich Kryukov 19-Aug-15 15:38pm    
Looks useful, a 5.
—SA
Maciej Los 19-Aug-15 15:46pm    
Thank you, Sergey.
CPallini 19-Aug-15 15:53pm    
5.
Maciej Los 19-Aug-15 16:02pm    
Thank you, Carlo.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900