Find solution

How to open custom editor for property in PropertyGrid from the outside?

Here are 18 best answers to ‘How to open custom editor for property in PropertyGrid from the outside?’ - the most relevant comments and solutions are submitted by users of Stack Overflow, Yahoo! Answers and Quora.

Best solution

  • Custom Editor for a Boolean Property in a PropertyGrid (C#)

    I want to assign a custom editor to a boolean property in a PropertyGrid. I'm using the standard propertygrid (from namespace System.Windows.Forms). It is possible to assign custom editors to properties using the UITypeEditor class. However, as far as I can see, it is not possible to use it for a boolean property. I've tried to solve it by overriding the property grid so I can add items manually. I can add a string property that has a custom editor by the following piece of code: Properties.Item...

    Answer:

    The Microsoft PropertyGrid checks this flag to determine if it displays a dropdown arrow (flag == true...

    Mark as irrelevant Undo

Other solutions