日期:2014-05-18  浏览次数:20957 次

PropertyGrid控件问题(急,急,急,在线等)????
我用代码建立了这样一个属性条
                [CategoryAttribute( "aaa "),DescriptionAttribute( "aaa ")]
                public   string   Name
                {
                        get
                        {
                                return   _name;
                        }
                        set
                        {
                                _name   =   value;
                        }
                }

问题是我想在加载的时候通过一个按钮事件来控件是否显示这条属性条???这样的话在Button中应该怎么实现???高手指教!!!!

------解决方案--------------------
帮你顶下,关注
------解决方案--------------------
About this question, I can give you two method:
(1)Implement ITypeDescriptorContext.
(2)Build your dynamic type.