I already answered a similar Question. This is not easy, but doable. Please see this Question and my Answer:
How to get response when click PropertyGrid[
^]. (See my "long" Answer.)
Please don't say my Answer is irrelevant from the first glance: it is relevant, but the ideology of
PropertyGrid
is maybe very different from what you might expect. The idea is not modifying the behavior if this control. Instead, you should create you own control(s) to embed in the grid. To use them, you need to create a special data type to wrap your real data. You should assign an instance of your wrapper data type to the property
PropertyGrid.Selected
object instead of reference to your "real" data object.
Nevertheless, this approach can be very universal: you can develop your customized controls and the wrapper the way it will suite nearly all data classes/structures you need. Don't think you need to repeat this work for every specific data type.
—SA