Quantcast
Channel: Windows Forms Data Controls and Databinding forum
Viewing all articles
Browse latest Browse all 2535

Binding ComboBoxes using Foreign Key / Primary Key in two tables

$
0
0

My Database Structure is as shown above.

I have bound all the  fields(except Type)  to their respective text-boxes / combo- boxes.

When the user selects an item from the topmost combobox (bound to ITEM -> description), the values in the text boxes change accordingly. The Binding Navigator too achieves the same.

However, I have no idea how to implement functionality in the "TYPE" Combobox.

Here is what I want.

a) Combobox Updates.

1) User selects an Item from the combobox / Navigator lets say "Iphone 5"

2) The "Type" Combobox displays "Smartphone"

b) Save / ADD / Edit functionality.

a) The User may want to change the type of an item from the TYPE combobox.

b) Clicking save should do this.

NOTE:

1) The Database is an accdb (Access Database).

2) Code is written in VB.NET.

3) I am using the standard, dataadapter, dataset, bindingsource funtionality

4) NET framework 4, as I will be using this software on Windows XP.


Viewing all articles
Browse latest Browse all 2535

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>