Click here to Skip to main content
15,890,506 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I have a datagridview which is bounded with data base!

and a combo box coloumn with values("good",bad,damaged)in its items collection..
The user updates it to Bad or damaged,It is not attached with Database!
Bt at run time values are not loading..I do.nt know why?
It is simple as Combobox simple items..

I had then made a table having 3 values (Good,bad and damaged) and set datasoure,display member,value member and got the values..

What is the way to display values in Combobox items What am I missing
Posted

can you share your code it will help more.
 
Share this answer
 
1)
for (int index = 0; index < this.gdvReturnOrder.Rows.Count; index++)
                {
                        DataGridViewComboBoxCell dc = new DataGridViewComboBoxCell();
                        dc.Items.Add("Good");
                        dc.Items.Add("Loss");
                        dc.Items.Add("Damaged");
                        this.gdvReturnOrder.Rows[index].Cells["Column9"] = dc;
                        this.gdvReturnOrder.Rows[index].Cells["Column9"].Value = dc.Items[0];
                 }

It is showing entries now bt I am not not able to to select values from it(Combo box list
is not droping down)
 
Share this answer
 

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