Click here to Skip to main content
15,911,142 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
I have tables like that in Datagridview:

DatagridView:
Name Company(*) Planing
----------------------
Hi A A1
Ki B B1
----------------------
*) column Company as name of table in database
#) column Planing as name of Column in Table A.

Table A
A1 A2 A3
----------------------
S1 S2 S3
----------------------

Table B
B1 B2 B3
----------------------
T1 T2 T3
----------------------

Actually i want to change Planing column in DatagridView with columnCombobox.
I am using WPF C#. database using mySQL.
I have try many sample using combo-box and so on, still stuck cannot get data according to the database.

THE CASE:
when i click in cell in datagridView field "Planing" i will select it the column name according to data.

Please need Help
Thanks.
Posted
Updated 23-Jul-13 21:34pm
v4
Comments
Herman<T>.Instance 24-Jul-13 6:05am    
It is nice you have shared this with us, but what is the problem?
[no name] 24-Jul-13 6:10am    
the problem is the case above. I cannot get the column Combobox list up-to-date according to the data list above.

1 solution

What i am getting . You want to display combobox with values coming from database On UI . Am i right?
 
Share this answer
 
Comments
[no name] 24-Jul-13 7:53am    
sory actually I have already display my combobox inside the cell of datagrid but still I am having a problem on displaying my data correctly. What I want is when I click on my combobox they should appear according to the column "Company". As the database that I design, the value of row in combobox is the column name of each "Company" which is create as a single Table in database.

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



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