Click here to Skip to main content
15,888,113 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
Hi everyone!

I am trying to make a datagridview with the cells being in the combobox format and being able to be typed into. I've not been able to find a way to type into them in the combobox format. I've found a way to add comboboxes next to the textboxes but have the comboboxes only be the width of the drop down arrow and add this code:
C#
dataGridView1.CurrentRow.Cells.Add(makeGridViewTextBox) = dataGridView1.CurrentRow.Cells.Add(makeTemp);

The issue that the compiler is having is that there are some invalid arguments. Can anyone shed some light as to why this code won't work? Before the equals sign requires the textbox control name (left hand side) and the part after the equals requires the name of the combobox cell (right hand side).
Posted
Updated 28-Jan-13 4:53am
v2
Comments
CHill60 28-Jan-13 10:55am    
what is makeGridViewTextBox and makeTemp?
joshrduncan2012 28-Jan-13 10:57am    
makegridviewtext box is the textbox displaying the choice or able to be typed into
makegridviewcombobox is the combobox from which to choose from
makegridviewcombobox has the width of only the dropdown arrow

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