This thread looks to be a little on the old side and therefore may no longer be relevant. Please see if there is a newer thread on the subject and ensure you're using the most recent build of any software if your question regards a particular product.
This thread has been locked and is no longer accepting new posts, if you have a question regarding this topic please email us at support@mindscape.co.nz
|
Hi, I'd like to replace the default editor for one of my types with a drop down list of objects for the user to choose. Can you please tell me the best way to do this?
Thanks! |
|
|
Probably the simplest way is to create a TypeConverter and override GetStandardValuesSupported and GetStandardValues. You will also need to override the Convert* methods so that the standard values are convertible to and from strings. If you do this, you won't need to declare a TypeEditor or PropertyEditor -- the grid will detect that it should offer only the standard values and will use a drop-down box automatically. If you have RTM or an older nightly, you will need to get a recent nightly build for this to work. |
|