Monday, December 24, 2007

namespace issues in the collection editor

The CollectionEditor has a nice little quirk that took me some time to figure out. If you are using the default CollectionEditor in .net for objects that don't have a 'Name' property. The collection editor will instead put the fully qualified namespace of the object instead. This was causing me to see very long names in the CollectionEditor instead of the actual name of the control.

So in .net with the CollectionEditor, if you aren't seeing the right name come up in the left pane, then you just need to add a 'Name' property to your object and all will be well.

No comments: