Jump to content
Xtreme .Net Talk

Recommended Posts

Posted

Dear all,

 

I am trying to filter data by using dataview and display the results on the combo box, but the problem is it displays more than 1 exactly the same results on a combo box, how can I do it to prevent this happned?

 

Thanks

 

PlayKid

  • *Experts*
Posted

If I'm not mistaking your question, I think you're wanting this:

If Not ComboBox1.Items.Contains(someValue) Then
   ComboBox1.Items.Add(someValue)
End If

Member, in good standing, of the elite fraternity of mentally challenged programmers.

 

Dolphins Software

Posted

No, this is not what I mean, I am populating the combobox by dataview, and it automatically populate the data onto it, since I am not adding it manually, so your code is not what I want.

But thanks for your replying.

PlayKid

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...