Jump to content
Xtreme .Net Talk

Recommended Posts

Posted (edited)

Re: Remove Duplicate items from a ComboBox How?

 

hi,

am using .net framework 3.5. in load,am taking values from 2 tables to one combobox. and i call values from combobox same values are repeated i think its bcz of calling from 2 tables. plz tell how to remove duplicate values in it..

Thank u

 

Note from moderator: Please place new questions in their own topics. If there is another relevant topic you would like to reference, include a link to it. Thanks!

Edited by snarfblam
  • 2 weeks later...
Posted

Re: Remove Duplicate items from a ComboBox How?

 

write a sql query which you want to use to fill combo in that use UNION and then bind it to the combo

 

for example: (select empname from employeemaster) union (select empname from empdetails)

 

then using datareader or dataset bind the values.

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