TextBox data binding in VS 2005

TextBox data binding in VS 2005

Post by eWJj » Mon, 01 Aug 2005 09:01:01


In VS 6.0 all TextBoxs in a form can be bound to a data source(recordset) as
the following code:

Dim oText As TextBox
'Bind the text boxes to the Recordset
For Each oText In Me.txtFields
Set oText.DataSource = rs

Is there a similar way in VS 2005 to bind all textboxs to a data source
(DataReader) rather than bind them one by one with the method
TextBox.DataBindings.Add(New Binding(ext DataReader, ieldname)?

Thanks in advance.


1. How to bound textbox with Sql Data Source in VS.Net 2005 >

2. Problems with binding to binding source on base form in VS 2005

I have a base form for performing searches. The base form has a protected
BindingSource object called searchResultsBindingSource.

On my derived forms (for example, CompanySearch), I instantiate a dataset
and set the base form's binding source to the dataset with no problem.

On one particular form, however, I have child tables; when I set the child
BindingSource object's DataSource to searchResultsBindingSource, then set the
child BindingSource object's DataMember property to the name of the
relationship to use, the designer gives me an error about "DataMember
property 'xxx' cannot be found on DataSource."

The form works perfectly fine when I run the application; the problem is
that, once I wire up the BindingSources, I lose the ability to edit the
derived form in the designer. Am I doing anything wrong, or is this a
limitation of the designer?

Jim Tilson

3. binding data to gridview in vs 2005

4. Binding Data to a text box C# VS.2005

5. VS 2005 data binding error

6. Data Binding - using inline code vs. functions vs. straight binding

7. VS 2005 com add-ins and Office version

8. How bind textbox to parameter for insert (2005)

9. Cannot load add-ins with VS 2005 Beta 2

10. VB-6 Textbox data field Vs .Net Textbox property ?

11. "View Data Grid" option for XML files in VS 2005 but not VS Expres

12. Is VS 2005 Team Edition for DB prof same as VS 2005 Team Edition D

13. Converting VS 2005 Web Site Project to VS 2005 Web Application Pro

14. VS 2003 versus 2005 ASP:Textbox height difference

15. Posting VS 2005 RC code to VS 2005 Beta 2 site