Databindings property for textbox control in Design mode - VS 2005 [modified]
-
Simple databinding works fine with the following code.
Text.DataBindings.Add(Text",datatable1,"Name")
Could anyone suggest on how to do Databinding in Design mode in VS 2005
modified on Thursday, September 18, 2008 1:01 AM
Hello, First of all, you need to set the DataSource and DataMember for the BindingSource. Then you can use set the desired bindingSource.ColumnName in the Text property under DataBindings() in the Properties Windows(Located at the top on the window) of the TextBox. In the MoveNext and MovePrevious buttons, you can simply define the following code: BindingSource1.MovePrevious() or BindingSource1.MoveNext() For more information, you can visit the given link: http://www.codeproject.com/KB/grid/BindSourceBindingNavCS.aspx[^] I hope this will help. Regards, Allen
Allen Smith ComponentOne LLC www.componentone.com