471,593 Members | 1,816 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,593 software developers and data experts.

help with CollectionEditor(string) and GetStandardValuesSupported

I have a TypeConverter that displays an exclusive list of possible
strings for a certain string property. That works great. In a different
class, I have a list of strings with the same limitation. I want a
CollectionEditor that will limit the string values to those of my
converter and limit the list so that its entries are unique and forced
to be one of my approved string values. Can somebody give me some
pointers on this?

It appears that I would override CreateInstace, scan through my
existing list and select a new value not already there for the default.
Can I return null on that if I don't want the user to return any more?
How do I limit the selection in my type converter to not include other
items already in the collection? How do I even set a type converter for
use int eh CollectionEditor?

Thanks for your time,

Dec 18 '06 #1
0 994

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

11 posts views Thread by Helmut Jarausch | last post: by
13 posts views Thread by Jonathan Wood | last post: by
1 post views Thread by avnishcapri | last post: by
1 post views Thread by matt | last post: by
2 posts views Thread by Fred | last post: by
3 posts views Thread by Dan | last post: by
2 posts views Thread by Peter Duniho | last post: by
reply views Thread by XIAOLAOHU | last post: by
reply views Thread by leo001 | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.