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
相关问题
- Sorting 3 numbers without branching [closed]
- Graphics.DrawImage() - Throws out of memory except
- Why am I getting UnauthorizedAccessException on th
- 求获取指定qq 资料的方法
- How to know full paths to DLL's from .csproj f
Implement
INotifyCollectionChanged
interface or useObservableCollection
class. see the linkI realise i am very late to the party, but here it goes. I use this base class
Then you just create a new Collectioneditor based on that. It will automatically refresh the property grid when the collection form is closed.
Be aware though, this solution is reflecting into the internals of the property grid and can be broken at any time, but i have done this for a while now with no problem