Comboboxes which are bound to a table in a dataset need to have two properties set and a binding to work correctly.
In code:
cboDemo.DataSource = DsDataSet.Tables("Results")
cboDemo.DisplayMember = "Demo_ID"...
I have a table to which I have used late-databinding to bind the textboxes and checkboxes on my windows form.
I use a bound combo box to that same table to display the correct info.
The textboxes are working perfectly in displaying the data from the correct row in the table when I select a...
Thank you - i set it on for both explicit and strict and found the problem - it's with the checkboxes - I have them setup in the tables as bits with a Y or N in them and the checkboxes well- they just plain didn't like it.
Kateryn
Anyone have any suggestions for tracking down the an error occuring in the dll:
I've already got try/catch on all my code. When in debug mode it comes up with unhandled exception :
Systems.Windows.Forms.dll
SystemInvalidCastException
Since I've got all my code in try/catch blocks - this...
So, Younguser,
I'm not understanding - as in you're just a little too vague. How does what you gave me display all the specialities that the vendor may have associated with it? And allow my user to add new specialities (thus creating a new vendor ID) for this vendor?
Thanks
I found most helpful the following books (they are listed in the order of their helpfulness to me):
Visual Basic .net complete - Sybex ISBN: 0-7821-2887-4 only $20
Beginning Visual Basic .net Databases - Wrox (out of print - but still on some bookstore shelves) ISBN: 1-861005-55-5 $35...
I have three tables
first table: vendors consists of the following columns:
vendor id (unique), address_id , specialty_id (address_id and specialty_id columns compose a unique key)
Second table: Addresses consists of the following columns:
address id (unique/key) - relationship to vendor...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.