how would you change your bindingsource for a textbox programmably
-
if you wanted to change say textbox1 datasource to be that of checkbox1 datasource how would you go about doing that ? i looked for something like textbox1.datasource but didn't find anything. I know you can set it in properties but i wanted to set it in code if possible.. thanks
-
if you wanted to change say textbox1 datasource to be that of checkbox1 datasource how would you go about doing that ? i looked for something like textbox1.datasource but didn't find anything. I know you can set it in properties but i wanted to set it in code if possible.. thanks
what do you mean by binding a textbox with datasource, you can simpley write textbox.text for binding any value in that.
-
what do you mean by binding a textbox with datasource, you can simpley write textbox.text for binding any value in that.
well my original idea was that the reason one of my control was not populating correctly was because it was bound to a different binding source but I don't think that is problem at all. i used textbox.databinding.add("Text",bindingnavigator.bindingsource,"SurrogateNumber"); then of course i get double binding errors when I do that because it is already bound. I don't know I'll figure something out. Kinda strange that the data comes back but that one control only gets the first instance of the filter whenever all the data is there. Thanks for trying to help though.
-
well my original idea was that the reason one of my control was not populating correctly was because it was bound to a different binding source but I don't think that is problem at all. i used textbox.databinding.add("Text",bindingnavigator.bindingsource,"SurrogateNumber"); then of course i get double binding errors when I do that because it is already bound. I don't know I'll figure something out. Kinda strange that the data comes back but that one control only gets the first instance of the filter whenever all the data is there. Thanks for trying to help though.
I figured it out i had to use dataloadoptions to link all the tables together and it works fine.