views:

410

answers:

0

I'm using a PropertyGrid to display information about various classes(at Runtime). The information comes from a database and thus has several look-ups that are represented by numbers (1=Red, 15=Green etc).

One of the columns is in milliseconds and I would like to present the user with option of selecting the unit (1 hour=3600000, 1 day=and so on).

As I cant change the database, I cant use enums in the propertygrid (I don't think).

I would like to be able use a combobox, that displays text and enters number into the relevant field. I've gone round the houses trying to work out do I need to use a TypeConverter, or UI Type Editor, or should I abandon the idea of using a propertygrid entirely and write a series of custom controls? (though I really do want to crack the 'Secret Of the PropertyGrid')

regards Paul.