Click here to Skip to main content
15,908,776 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
sir,

we have three combo boxes when we insert new values to first combobox then that value can be stored in backend table1(id (identity) primarykey,name ) and also fill that value into combobox.if value can be stored in table it generate an id we use that id as reference to table2(id,name,table1id(ref)).the value we write in combox2 is stored in table2 with the id of first combobox selected index as ref to that text
for example like this
  table1
-----------
bid   bname
---------
1     a 
2     b 
3     c


table2
------- 
fid   fname     bid
----------------------
1     first     1
2     second    1
3     first     2
4     second    2
5     first     3
6     second    3

table3
-------
rid  rn0   fid
-----------------
1    101    1
2    102    1
3    201    2

please send c# code to do this
Posted
Updated 7-Nov-11 21:32pm
v2
Comments
Pandya Anil 8-Nov-11 9:22am    
is there a save button or you want to do in ComboBox.OnTextChanged event ?
prasad sadhu 9-Nov-11 0:08am    
combobox.on text changed event
BillWoodruff 10-Nov-11 9:37am    
What is your question, and what have you tried so far ? Is this WinForms? ASP.NET? ... Are the three ComboBoxes in the same container (Form ? Panel ?).
Denno.Secqtinstien 22-Nov-11 1:35am    
please elaborate ..

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900