.NET Framework Bookmark and Share   
 index > .NET Framework Setup > Property Grid / TypeConverter / StandarValues - popup display empty text for all items
 

Property Grid / TypeConverter / StandarValues - popup display empty text for all items

i have a class with property of type Object, with has a limited options of possible values (not my values so i can't have them all inherit from a common class).

I've created a type converter for that property since each different value type can and should be displayed differently (standard values, properties, simple text, etc).

Either way, when the object is a specific type (Texture2D if it matters, shouldn't though), i'm generating a collection of items, where the last one of them is null (intentionally);

However, from some reason it seems the property grid is either ignoring/removing or something with the values (not including the last);
When the combobox list popup, it shows 2 items (in the case of one item + null) with 2 empty lines, where the first one shouldn't be an empty line;

i have tried debugging through all the type converter, and even looking at the reflector, i can't see any reason why would that happen.
Also note that when i debugged the type converter methods, i've noticed that the ConvertTo method is being called with the actual first value that should be displayed in the combobox, and i am returning it as a string, which make even less sense why the combobox won't display the first item text ..

Yours, Matan.
Matan99
First of all, i must apologize for posting the thread in the wrong forum.

Second, i seem to found the problem.


Yours, Matan.

All Replies

Matan99
First of all, i must apologize for posting the thread in the wrong forum.

Second, i seem to found the problem.


Yours, Matan.
  • Wednesday, September 09, 2009 3:14 AMYiChun ChenMSFT, ModeratorUsers MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     
    Hi Matan99,

    Would you like to share how you solved your issue?
    This will be beneficial to other community members who have similar issue as you.

    Thank you for your kindly help advanced. :)

    Best regards,
    Yichun Chen
    Please remember to mark the replies as answers if they help and unmark them if they provide no help.
    Welcome to the All-In-One Code Framework! If you have any feedback, please tell us.
  • Matan99

    You can use google to search for other answers

    Custom Search

    More Threads

    • .NET framework initilization
    • I cannot install .net framework 2.0 because of 1.1 - the previously installed version (1.1) is not compatible with the new (2.0)
    • installing .net 2.0 framework on a machine that already has .net 1.1 framework
    • Framework v3 and v3.5
    • .NET 3.5 Framework compatible with Visual Studio 2005
    • What are the signatures of the various versions
    • System.Threading.ThreadAbortException
    • Creating database login and grant privilages during installation
    • dotnetfx35setup.exe:- No new items in Project Template.
    • Where can I get .Net 2.0 SP2 and .Net 3.0 SP2