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
Converting an Access Date/Time column's value to a DateTime object
change size of text field via DAO
How to make Access 2007 application run on a machine without Access?
Error message after installing Ajax and using Editor control
Reconfiguring CRM Toolbar in Outlook
Mousing Around Win 7
Outlook Meeting requests not going into the calendar
Nameing a Windows server
How to copy folder permissions to other folders with same structure
Retrieve most current records