What is the best way of implementing a unit conversion on a property displayed in the propertygrid of a CollectionControl?
e.g. I have a Property Length that I want to display in either centimetres or inches depending on the users settings, but I want the underlying property to only maintain the centimetres value.
I have tried a TypeConverter but understand that is not supported for PropertyGrid.
I also tried overriding ToString but that doesn't really work very well at the Property level.
e.g. I have a Property Length that I want to display in either centimetres or inches depending on the users settings, but I want the underlying property to only maintain the centimetres value.
I have tried a TypeConverter but understand that is not supported for PropertyGrid.
I also tried overriding ToString but that doesn't really work very well at the Property level.