积极答复者
自定义控件继承TextBox,设定一个DbCol属性,怎样在设定属性的同时,绑定TEXT?

问题
全部回复
-
你好 这只能在类中实现了 你可以在自定义控件的的Load事件中添加如下代码:
this.DataBindings.Add(new DataBinding("Text", typeof(string), "Eval(\""+this.DbCol+"\")"));
I see you~http://hi.baidu.com/1987raymondMy Blog~~~