Search code examples
c#.netwinformsuser-interfacepropertygrid

How do you have a button in a property grid?


I have a property grid that will have a few properties referenced. I would like to have one of the items in the property grid to be a button or even have a ellipses button which will act like a button on a normal win form.

Is there a way to do this?

Appreciate your help in advance!


Solution

  • I recommend reading Getting the Most Out of the .NET Framework PropertyGrid Control.

    It walks through how to create a custom UI for your property, which could include a button that opens a popup/separate form/etc.