开发者

Save a ListView into Settings.settings?

How can I save a ListView with multicolumns into Settings.settings and load them upon running? I'm trying to save a ListView with 3 columns.开发者_StackOverflow How can I do that?


  1. Bind the listview to some data structure.
  2. Serialize is using xmlseriualizer - then you can save the result into the Settings.

Restoring is done using deserialize.

StringWriter output = new StringWriter(new StringBuilder());
XmlSerializer s = new XmlSerializer(this.GetType());
s.Serialize(output,this);
var result = output.ToString()
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜