Search code examples
c#propertygrid

refresh a collection in propertygrid


hay all. i am using property grid to add or remove an object to a collection. but when the collectioneditor is closed only once the grid refreshes. after adding another object the grid wont get refresh. the collection in a list. i have seen many people with the same problem but no solutions. thansk


Solution

  • Implement INotifyCollectionChanged interface or use ObservableCollection class. see the link