在CoulmnItem 类里面定义个属性aaa, 这样设置aaa的属性.[Bindable(true, BindingDirection.TwoWay)]
        [DefaultValue("")]   
        [NotifyParentProperty(true)]
        [DesignerSerializationVisibility(
            DesignerSerializationVisibility.Content),
        PersistenceMode(PersistenceMode.InnerProperty)]
        public string aaa
        {
            get
            {
        
                return _aaa;
            }
            set
            {
                _Script = aaa;
            }
        }

解决方案 »

  1.   

    还可以为"内容"属性aaa增加UI编辑器类型属性:
            [Editor("System.ComponentModel.Design.MultilineStringEditor,System.Design", typeof(UITypeEditor))]
      

  2.   

    不能这样.集合编辑器已实现.只是增加内容时没有把内容放到
    <cc1:CoulmnItem></cc1:CoulmnItem>这中间.就像
     <asp:DropDownList ID=x runat=server>
                <asp:ListItem>fff</asp:ListItem>
                <asp:ListItem Value="555">xxx</asp:ListItem>            
            </asp:DropDownList>中间的内容在标记中间.