我该如何“保存并加载"?列表视图中的文件? [英] how do i do a "save and load" files in a listview??
本文介绍了我该如何“保存并加载"?列表视图中的文件?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我有一个使用C#语言的Winform应用程序.
我需要知道如何尝试在listview中执行功能.
我已经能够将几个文件加载到列表视图中,现在我只想保存它们.然后,当我再次打开列表视图时,我将能够一次将它们全部加载回去,而不必经历一次又一次地将文件拖出的麻烦.
TIA.
I have a Winform application in C# language.
I need to know how I go about trying to do a function in the listview.
I am already able to load several files into the listview and now I just want to save them all. Then when I open the listview again, I will be able to load them back all at once without having to go through the hassle of drawing the files out one by one again.
TIA.
推荐答案
列表视图只是您的数据视图.您不保存列表视图.您保存数据并编写代码以将数据以所需的格式传输到列表视图.
A listview is just a view of your data. You don''t save a listview. You save the data and write code to transfer the data to the listview in the format you desire.
这篇关于我该如何“保存并加载"?列表视图中的文件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文