Hello,
We're showing a class in the PropertyGrid with some of the properties being enums, which get represented as comboboxes in the PropertyGrid. I was wondering if it's possible to add spaces between the words for the enum values. For example,
Our class contains property
[DisplayName("Detect Trigger")]
public DriveDetectTrigger DetectTrigger
{
get => _model.DetectTrigger;
set => _model.DetectTrigger = value;
}with the enum "DriveDetectTrigger" defined as
Snippetpublic enum DriveDetectTrigger
{
PatternClock,
InstrumentClock,
}Here's how the class object looks in the PropertyGrid:
Is it possible to display "PatternClock" as "Pattern Clock"?
Thanks,
Alan