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 wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

DataBinding Question 1

Status
Not open for further replies.

AkutaSame

Programmer
Oct 5, 2002
97
US
Ok, simple enough to go through the wizard and build a dataset/adapter/connection/etc. and make it bind the fields to textboxes. What if I don't want to go through the wizard, and I want to bind to something other than a Datagrid or textbox. Say, like a lable? I have tried modifying the DataBinding section of the label, but it doesn't seem to change while stepping through the dataset.

Any ideas?
 
AkutaSame.

Have you tried removing all binding to the label withing code and then rebinding the data to it. i had a similar problem and that is all i had to do to get it working.
HTH,
bueller
 
So what you are saying is that it isn't easier to just create the connection/recordet/etc in code and bind the data at that point?

Seems a bit much to change the way ado interacts with your program.
 
AkutaSame,

No, i am saying that i believe it is easier to do it in code using ado instead of using the wizard since i have not done it using the wizard to generate the dataset/adapter/connection/etc.
The way i have done my databinding is to do it all in code without any wizards. that way i can control how the binding works. While doing the binding sometimes you need to remove the bindings on a control and re bind the data to the controls for some weird reason.
HTH,
bueller
 
Ok, now that makes a bit more sense. It appears that we are on the same page.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top