Click here to Skip to main content
Rate this: bad
good
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
Edited 28-Jan-13 4:53am
CHill6044K
v2
Comments
CHill60 at 28-Jan-13 10:55am
   
what is makeGridViewTextBox and makeTemp?
joshrduncan2012 at 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
Your Filters
Interested
Ignored
     
0 Shai Vashdi 458
1 Tadit Dash 300
2 Sergey Alexandrovich Kryukov 250
3 OriginalGriff 173
4 Peter Leow 130
0 Sergey Alexandrovich Kryukov 9,435
1 OriginalGriff 5,498
2 Peter Leow 4,230
3 Maciej Los 3,540
4 Abhinav S 3,353


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