save only edited listbox entries

57 Views Asked by At

If I've some existing entries in Listbox. When I click on edit button then I'll be able to edit those entries. After editing one or more entries when again I clicked on button, I want to save only those entries which are edited. How could I do this? Please suggest some solution.

1

There are 1 best solutions below

0
On

Couple of ways of doing that. You can save each entry into a List<T> on every edit, or you can cache (pre-store) the ListBox items and after finishing editing you can compare the latest with the previous and extract out the edited items. IMO the first approach is better and easier to implement.