Data Binding
-
Hi, Regarding the Data binding, How can i communicate to use the data binding with User Control in VB.Net. If I have a User Control that I want to make it ready for data binding, means if i put a texbox in the form, I can bind the textbox to the usercontrol's property. Is that this possible get it. Hope that you all can give me some example to do that.Please help me. Thanks & Regards.
-
Hi, Regarding the Data binding, How can i communicate to use the data binding with User Control in VB.Net. If I have a User Control that I want to make it ready for data binding, means if i put a texbox in the form, I can bind the textbox to the usercontrol's property. Is that this possible get it. Hope that you all can give me some example to do that.Please help me. Thanks & Regards.
You can bind your UserControl to the Textbox's Text property (or any other properties). Here's an example:
UserControl1.DataBindings.Add(New Binding("UserControlProperty", TextBox1, "Text"))
Check MSDN on Data Bindings[^] for more information. Edbert P. Sydney, Australia.