Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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!

like image 636
Sean P Avatar asked Jun 29 '11 18:06

Sean P


2 Answers

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.

like image 64
Reed Copsey Avatar answered Nov 02 '22 21:11

Reed Copsey


UITypeEditor, using the IWindowsFormsEditorService... thats what it was. Got it! Thanks for the direction!

like image 34
Sean P Avatar answered Nov 02 '22 22:11

Sean P