Jump to content
Xtreme .Net Talk

Recommended Posts

Posted

I've two combo boxes listed with same values from the database.

 

If I select a value from the first combo box, that value should not be listed in the second combo box.

 

[u]ComboBox1[/u]             [u] ComboBox2[/u]
One                   One
Two                   Two
Three                 Three
Four                   Four
Five                   Five

 

If I select 'Three' from the ComboBox1, the value 'Three' should not be listed in ComboBox2 while making a selection from ComboBox2.

Posted

Do you mean combo boxes or list boxes.

if you do mean combo boxes then do something like

If ComboBox1.Text = ComboBox2.text Then combobox2.text = "four"

 

 

if that is not helpful then can you please expand on your problem and what you need it to do (why should it do what you want it to do)

  • 3 weeks later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...