I’ve got a Dictionary<string, string> and would like to have the user to see and edit the content, possibly adding new entries. How should I do that?
Input verification, handling dynamic updates of the source Dictionary and looking nice are a bonus.
The absolutely simplest solution would be to translate to and from a DataTable and bind a GridView to that.
The DataTables support all the databinding support you want and allows you to add and remove rows.
Once the user is done, you could copy the contents of the datatable into your dictionary again.
Naive and dirty, but it would get the job done.
And to translate back to dict: