databinding isssues!!

jnash

Well-known member
Joined
Oct 20, 2006
Messages
111
Programming Experience
Beginner
i keep on getting this error:
VB.NET:
This causes two bindings in the collection to bind to the same property.
Parameter name: binding

using this code :

VB.NET:
            adapter.Fill(myDataTable)
            lbltitle1.DataBindings.Add("Text", myDataTable, "StockTitle")
            pb1.DataBindings.Add("ImageLocation", myDataTable, "StockPicLocation")
            lb1.DataBindings.Add("Text", myDataTable, "RentedOut")

            lbltitle1.DataBindings.Clear()
            pb1.DataBindings.Clear()
            lb1.DataBindings.Clear()
            If lb1.Text = "1" Then

any ideas it used to work, but now it doesnt!!!!

thanks
 
howcome youre doing this in your code? why not get the visual designer to generate that binding code?
 
Back
Top