Click here to Skip to main content
12,950,272 members (63,978 online)
Rate this:
Please Sign up or sign in to vote.
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:
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 28-Jan-13 4:18am
Updated 28-Jan-13 4:53am
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)

    Print Answers RSS
Top Experts
Last 24hrsThis month
OriginalGriff 5,829
CHill60 3,460
Maciej Los 2,953
Jochen Arndt 1,975
ppolymorphe 1,820

Advertise | Privacy | Mobile
Web02 | 2.8.170525.1 | Last Updated 28 Jan 2013
Copyright © CodeProject, 1999-2017
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100