Click here to Skip to main content
15,068,646 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
I am having a problem showing a combo box in DataGridView (DGV). I have read previous links and articles but couldn't find the relevant solution.

I have two db tables, 1. Country (Country_Code, Country_Name), 2. City (Country_Code, City_Code, City_Name). The City table depends on Country table. I want to show the user the data in City table he/she entered already on form_load and an option to add more. In order to show the records, I want Country_Code column to be in a combo box along with the "DisplayMember" value as Country_Name from Country table.

Kindly help me out.
Posted

1 solution

Try the code project article @ How to add selection controls to your DataGrid[^]
   
Comments
kaushal16 14-Jun-11 8:20am
   
Nice post AMIT Keep it up....

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
Top Experts
Last 24hrsThis month



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900