Unfortunately, data binding in ListViewdoes not support regular (item) notification changes ( FooChanged/ INotifyPropertyChanged). However, if you know about the change, you can get a list to re-link yourself. Since you are a subclass, you can call:
this.RefreshItems();
or for one item:
this.RefreshItem(index);
Otherwise, since this is not publicly available, you can simulate it by changing DisplayMember:
lb.DisplayMember = "";
lb.DisplayMember = "Bar";
A bit hacked, maybe, but it works, and supports the current selection, etc. (unlike cleaning DataSource).
source
share