Click here to Skip to main content
15,891,644 members
Please Sign up or sign in to vote.
2.00/5 (1 vote)
See more:
Hi,
I use combo in my window application. I bound combobox with areaid and areaname.



Displaymember is areaname
Valuemember is areaid

Now I want areaid of selectedItem

HOW CAN I GET AREAID??

Please help me.

Thank you
Posted

Try this property of the combobox control:
SelectedValue: It gets or sets the value of the member property specified by the ValueMember property.

If needed, for more details refer: Combobox properties[^]
 
Share this answer
 
combo.SelectedValue

It helps when you read the documentation
 
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