DataGridViewComboBox issue

  • Thread starter Thread starter Tina
  • Start date Start date
T

Tina

I have a DataGridViewComboBox in a grid bound to a datasource. The column
is called Status, it can contain "accepted" or "rejected." I set this up at
design time by entering those two values in the Items collection. The
records being bound all have "accepted" in that column. When it runs the
combobox shows, as expected, "accepted". But to my surprise, I can't
dropdown the box - I would expect to be able to hit the dropdown arrow and
see "rejected" as an option.

Why isn't this working?
thanks,
T
 
I think your combobox should be bound to the table that contains the
values "Accepted" and "Rejected" and the SelectedIndex of the combobox
bound to the column containing the data...

--
Bob Powell [MVP]
Visual C#, System.Drawing

Ramuseco Limited .NET consulting
http://www.ramuseco.com

Find great Windows Forms articles in Windows Forms Tips and Tricks
http://www.bobpowell.net/tipstricks.htm

Answer those GDI+ questions with the GDI+ FAQ
http://www.bobpowell.net/faqmain.htm

All new articles provide code in C# and VB.NET.
Subscribe to the RSS feeds provided and never miss a new article.
 
But the designer has an Items Collection where specific values for the
ComboBox can be entered. It seems this would suffice for the combobox
binding. No?
T
 
Back
Top