By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
445,876 Members | 1,239 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 445,876 IT Pros & Developers. It's quick & easy.

PropertyGrid String List TypeConverter/Desciptor

P: n/a
Hi,

I would like to create a workable ExpandableObjectConverter for a String
Collection (class inheriting from CollectionBase for example and only
accepting/returning Strings via Add/Remove/Item/DefaultProprty) and a fitting
Descriptor (implementing ICustomTypeDescriptor)... now i created it and it
somewhat works.. my big problem is that i the String classs does not have a
default constructor and so the "Add" item in the collection pop up does not
work.

So i created a simple class with just a single string based data field and
coresponding property... created a typeconverter for it and it worked
somewhat... the problem is my TypeConverter's ConvertFrom method converts the
string into my StringItem class instance which it then returns... but the
Collection Item is never replaced/updated... so the Collection/List value
never changes...

How do i make it work?

In total i would like to have a Path List Object (using a FolderName
EditorAttribute) that i can simpley add to a property grid where i see all
the paths and can change each path directly (typing in the list) or via "..."
select button.

How is something like this possible?

Thanks
Dec 6 '05 #1
Share this question for a faster answer!
Share on Google+

This discussion thread is closed

Replies have been disabled for this discussion.