I'm trying to fix a bit of code where whenever a user adds an item in a list, if a similar item exist, it would not be added into the list and the user would be notified as such. I've made this sample block, it can add items but if it finds an item similar, it crashes the whole app.
I tried Dictionary as it was much more simpler for me personally, but now whenever I add a new element, it comes up like this
Here is the block for adding
The data would be saved in the dictionary while the listviewer shows what's inside it.I want the Patient_name to be the maintext and the rest as detailtext for every element in the listviewer
I did not see any relationship between the Dictionary and Listview.
at least you need to set the ListView elements again after you delete item from Dictionary, otherwise the ListView will not refresh by itself.