Simon Mourier's Avatar
Simon Mourier's blog (1351 answers on StackOverflow) about Microsoft technologies C#, C/C++, .NET, WinRT, WinUI, COM, Interop, DirectX, Direct2D, Windows, ...
  • 🔎︎ Search
  • Categories
  • Archives
  • About Me
  • propertygrid
  • winforms

Is winform PropertyGrid able to edit dynamic object?

Jul 16, 2015 See the question and my original answer on StackOverflow

Anonymous types have read only property descriptors (used by the property grid) by design (see here for more on this: Non-read only alternative to anonymous types).

You can however use tricks such as the DynamicTypeDescriptorWrapper class demonstrated here: Fun with C# 4.0’s dynamic that implement the ICustomTypeDescriptor Interface

  • SmoBlog © 2010-2025 Simon Mourier. All rights reserved.
  • Privacy & Terms