Microsoft
Software
Hardware
Network
Question : How do I add a ComboBox to a C# Datagridview only in a particular cell? Not the whole column.
How do I add a ComboBox to a C# Datagridview only in a particular cell? Not the whole column.
The ComboBox control would always be in column 2 for example for only in particular rows.
Any ideas?
Thanks,
Answer : How do I add a ComboBox to a C# Datagridview only in a particular cell? Not the whole column.
Use following code to set combobox cell in row 2 / cell 1.
1:
dataGridView1.Rows[2].Cells[1] = new DataGridViewComboBoxCell();
Open in New Window
Select All
Random Solutions
Randam generatetion in asp.net with C#
Query in SSRS take much longer than SSMS
MDaemon not collecting Domainpop mail
MS Excel: is there a way to highlight the row you've clicked in
Show / Hide command button?
cursor position in textbox
Run Excell 2007 via C++
Excel vba: post 30 based on prev EE post - Using VBA to place a Y axis title
Where or between on row_number
Issue with performance of a SQL query