at the moment I lack access to the pc with the code on it, so for now I will try to keep my question basic.
if anyone thinks more information will make the question cleared, I will upload it when I have access again.
now here is my problem:
I have a listview witch is populated by user input(lets say for the ease of argument that the input is "first-name" "last-name" and "e-mail adres") all of with get there information from textboxes.
then all the information gets stored in a list and on closing that list is stored in a xml-file in the following format
<Root> <Data> <first-name> Samual </first-name> <last-name> Hunter </last-name> <e-mail adres> [email protected] </e-mail adres> </Data> <Data> <first-name> John </first-name> <last-name> Doe </last-name> <e-mail adres> [email protected] </e-mail adres> </Data> </Root>
the input, saving and loading is no problem. when you open the file this listview is in view = List so that you only see the last-name(I prefer it that way since I know how to code that) and when you click it it fills the textboxes with the corresponding information.
what I am trying to figure out it how to make it that it sorts itself(preferred sorting when something is changed).
I tried the ListView.sorting = SortOrder.Ascending; when I do it that way it messes up the corresponding information(is it clear what I mean or do I need to add an example).
with the help of google I couldnt find something that I could understand, so and help or links to possible tutorials would be much appreciated.