Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Preserve TextBox DataBinding

Status
Not open for further replies.

Auguy

Programmer
May 1, 2004
1,206
US
VB.net. I hope I'm missing something simple here. I have textbox bound to datatable as follows.
Code:
txtUnitNo.DataBindings.Clear()
txtUnitNo.DataBindings.Add("Text", dsUnit.Tables(0), "UnitNo")
If I go back to the database to retrieve a different set of records it seems I have to reset the bindings. Is there a way to set the bindings once and preserve them for the life of the form?

Auguy
Sylvania/Toledo Ohio
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top