Click here to Skip to main content
15,893,790 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I have created a databound comobobox - I want to create a order so that what ever item is selected - the Colour of it which is is a different cell is displayed in a textbox.

I.e. i select 'Toy house' from the checkedlistbox - which was created using databounditems
therefore the textbox1 should display 'Blue' which is in the colour cell. There no datagridview table in this form.

I want to make a dynamic formula also
Can anyone help?

What I have tried:

I'm not too sure where to start?
Posted
Updated 15-May-18 13:51pm
Comments
BillWoodruff 15-May-18 19:55pm    
"the Colour of it which is is a different cell" a different cell of what ? Is there a DataTable in use ?
Member 13765884 15-May-18 20:05pm    
A different cell in the database.
BillWoodruff 15-May-18 20:27pm    
Is the ComboBox databinding working now ?

1 solution

Given the value you want to show is not the value in the textbox. where-ever the data comes from, I'd use a StringDictionary to create a lookup, and set the text based on that.
 
Share this answer
 
Comments
BillWoodruff 15-May-18 19:56pm    
My vote of #1. Did you even read the question ?

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