How to handle add to list event?

后端 未结 10 2374
伪装坚强ぢ
伪装坚强ぢ 2020-11-29 22:55

I have a list like this:

List list = new List

How to handle adding new position to this list?

When

10条回答
  •  一生所求
    2020-11-29 23:51

    You cannot do this with standard collections out of the box - they just don't support change notifications. You could build your own class by inheriting or aggregating a existing collection type or you could use BindingList that implements IBindingList and supports change notifications via the ListChanged event.

提交回复
热议问题