User (Legacy) Posted March 23, 2005 Report Share Posted March 23, 2005 I am trying to use the System.ComponentModel.Design.CollectionEditor at runtime to allow the end user to configure ConstantLines and ConditionalAttributes. This works fine except for the fact that the Add / Remove buttons are grayed out. I am assuming that this is because these collections do not implement IList. Even though they have implementations for Add and AddRange etc.? If this is the case then how does the CollectionEditor work at design time? Anyone have any ideas on this. I want to expose all the customizable attributes of these classes to the user in the UI without having to recreate the collection editor manually. Thanks, Darren Mombourquette Link to comment Share on other sites More sharing options...
Software FX Posted March 24, 2005 Report Share Posted March 24, 2005 You need to implement a class that derives from CollectionEditor, overriding: protected override object SetItems(object editValue,object[] value) and protected override Type CreateCollectionItemType() -- FP Software FX Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.