Using a TypeConverter with a double[] array in PropertyGrid

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • engrpetero
    New Member
    • Nov 2012
    • 1

    Using a TypeConverter with a double[] array in PropertyGrid

    if an object property is an array of doubles, I can show that property in a PropertyGrid and edit it with no problem. However, I can't put a TypeConverter on the array elements (in this case, I am trying to use one of my standard TypeConverters (Decimal2Conver ter) that shows 'double' types with 2 decimal places). Is there some secret to using a TypeConverter for an array property?

    Code:
    [TypeConverter(typeof(Decimal2Converter))]
    public double[] Correction
    {
        get { return this.Correction; }
        set { this.Correction = value; }
    }
    Last edited by PsychoCoder; Dec 1 '12, 03:16 AM. Reason: Formatted code with code tags </CODE>
Working...