DataGridView containing DataGridViewComboBoxColumn VS 2008 C# Windows App

I am attempting to add a DataGridViewComboBoxColumn to an existing DataGridView control. I am having difficulty populating the combobox with dropdown values, and I am not able to view them when I select the combobox dropdown when the grid has finished loading. I have searched for a small working example where combobox values are being added programatically but have had no luck. Could someone explain why the dropdown values are not populating or are not viewable in the dropdown list?

I have included my test code:
DataTable dtBook = new DataTable();
//Create Columns in DataGridView
dtBook.Columns.Add("bookid", typeof(int));
dtBook.Columns.Add("bookname", typeof(string));
dtBook.Columns.Add("startTime", typeof(DateTime));
dtBook.Columns.Add("endTime", typeof(DateTime));
//Create Rows in DataGridView
for (int i = 0; i < 10; i++)
   DataRow dr = dtBook.NewRow();
   dr[0] = i;
   dr[1] = "book" + i.ToString();
   dr[2] = new DateTime(2007, 1, 1);
   dr[3] = DateTime.Now;
//Add Rows to DataGridView
dataGridView1.DataSource = dtBook;
//Create DataGridView ComboBox Column
DataGridViewComboBoxColumn colStatus = new DataGridViewComboBoxColumn();
colStatus.AutoSizeMode = DataGridViewAutoSizeColumnMode.ColumnHeader;
//Specify the list of choices in the combo box
colStatus.Items.AddRange("New", "Used");
//Sort the combo box contents alphabetically
colStatus.Sorted = true;
//Disable sorting for the column
colStatus.SortMode = DataGridViewColumnSortMode.NotSortable;
colStatus.HeaderText = "Condition";
colStatus.Name = "Condition";
colStatus.ReadOnly = false;

Open in new window

Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

ImInOrlandoAuthor Commented:
My previous grid had read only set to true AND the Selection Mode was set to Full Row Select. I caught the Selection Mode issue but I don't think I would have even looked at the Read Only property for the grid until I eventually dropped a new DataGridView control and sorted through the differences. Hope this might help those like myself in the future! =]

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
.NET Programming

From novice to tech pro — start learning today.