Click here to Skip to main content
15,887,361 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
how to fill department name related to employee in combobox with other departments list.
i need the code for this for c#.net.
thanks...
Posted
Updated 5-Aug-12 23:10pm
v2
Comments
Maciej Los 6-Aug-12 5:01am    
Please, be more specific and provide a little more information, for example: database (MS Access/ SQL Server), technic: WinForms/ASP, table and fields name?

Find out your solution from previous solution..please refer to the following link


Connectivity of Dropdown lists with two tables of SQL[^]


thanks
Ashish
 
Share this answer
 
You select the data from your database, then make that the data source of your combo box. Your question is so vague, I am guessing that you're using a .NET language and not PASCAL or something.
 
Share this answer
 
Comments
SamWakchaure 6-Aug-12 5:05am    
i want to do in c#.net
Christian Graus 6-Aug-12 5:06am    
Then my answer to your (vague to the point of meaningless) question is correct. However, a better answer would be, if you don't know enough to try this, and you need to ask such a general question, then reading articles like the ones someone else linked you to, is probably what you need.

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