-
Jan 9th, 2012, 09:23 AM
#1
Thread Starter
Addicted Member
Combobox, datagrid and duplicates
My last post somehow went wrong so i try it again.
I have a form with just one combobox and a datagrid view.
What i would like to do are 2 things.
At first i would like to remove all duplicate records from the combobox that are loaded in when opening the form. How do i do this?
Second those duplicates are names of companies that have different contacts to me.
So I would like to be able to choose one of the names in the combobox which has for example 3 contacts, and show these contacts in the data grid.
Company1 james
company1 john
company2 johnnyB
Company1 anne
company3 joan
company4 rick
etc.
If i selelct company1 the datagrid should show the names james, john and anne.
How do i do this in a simple way?
Last edited by rakker; Jan 9th, 2012 at 09:42 AM.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|