How do you have a button in a property grid?

Sean P picture Sean P · Jun 29, 2011 · Viewed 8.6k times · Source

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!

Answer

Reed Copsey picture Reed Copsey · Jun 29, 2011

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.