Click here to Skip to main content
15,888,908 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
i have a comboBox,
---------------cboPosition-----------------
PositionCode <-------> PositionDecription
     1                    Manager
     2                    Supervisor
     3                    Asst. Manager
---------------cboDepartment---------------
DepartmentCode <-------> DepartmentDecription
     1                    Manager
     2                    Supervisor
     3                    Asst. Manager

listview = lvInformation
Database i use is SQL 2008
i want to use a hashtable and dataDictionary so that ones i select a position and Department the that save in dataBase instead of Manager it will save to the dataBase
as "1" w/o quot which is the the code of Manager in my Data Base . . .

please help me :(

[edit]Code block added, second copy of the question removed: double paste I assume - OriginalGriff[/edit]
Posted
Updated 16-Jul-11 22:43pm
v2

1 solution

There are a number of ways to do this.

You can always bind the PositionCode to the tag in the combo box. As a result, everytime you select the Manager, the appropriate tag is selected.

You can also add a KeyValue pair in the dictionary as shown here[^].
 
Share this answer
 

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