Windows Develop Bookmark and Share   
 index > Windows Forms Data Controls and Databinding > Databinding from a DataSet to a Forms.TextBox
 

Databinding from a DataSet to a Forms.TextBox

Any idea what forum would be the best place to find an answer to a problem with databinding from a DataSet to a Forms.TextBox?

Thanks
solx37  Tuesday, January 22, 2008 2:53 AM

Hi, if you want to know how to binding dataset with textbox,

try like this

textBox1.DataBindings.Add _
(New Binding("Text", ds, "customers.custName"))
textBox2.DataBindings.Add _
(New Binding("Text", ds, "customers.custID"))

For more information,check this article

http://msdn2.microsoft.com/en-us/library/system.windows.forms.control.databindings.aspx

Best Regards

Gavin

Gavin Jin - MSFT  Friday, January 25, 2008 5:53 AM
Here would be a good place

Ken Tucker  Tuesday, January 22, 2008 12:05 PM

Hi, if you want to know how to binding dataset with textbox,

try like this

textBox1.DataBindings.Add _
(New Binding("Text", ds, "customers.custName"))
textBox2.DataBindings.Add _
(New Binding("Text", ds, "customers.custID"))

For more information,check this article

http://msdn2.microsoft.com/en-us/library/system.windows.forms.control.databindings.aspx

Best Regards

Gavin

Gavin Jin - MSFT  Friday, January 25, 2008 5:53 AM

You can use google to search for other answers

Custom Search

More Threads

• Grid Databind with custom object
• Fetch data to a Datagridview from Excel sheet or (.txt)Notepad file
• BindingSource.Current
• Help with a Custom ComboBox Column
• datagrid column width
• Auto-Generating row number on RowHeaders
• How do I change the source of a datagrid?
• End of row error with DataGridView
• Hosting Controls in a DataGridView
• How to insert dataGridView selected rows data to sqlserver database table