views:

351

answers:

0

I have a property on an object whose custom TypeConverter specifies an exclusive StandardValuesCollection (let's say "Foo" and "Bar"), so that when editing this property via a PropertyGrid, a drop-down list of these values is displayed. I would also like to be able to directly type in the field on the PropertyGrid, and have it auto-complete to one of the standard values for me (eg, I type "F", and it brings up "Foo"). Currently, what I desire only works if you already have the drop-down editor opened from clicking the drop-down glyph, which is the specific step I would like to avoid.

My only option seems to be writing a custom UITypeEditor to auto-complete from the standard values collection in the TypeConverter, but considering other controls with standard value support have auto-complete, I was hoping perhaps I just missed something on the PropertyGrid. Do I have a better option?