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?
- Bind the listview to some data structure.
- 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()
精彩评论