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
Hierarchy Tree Query
Dynamically Change File Name Property In File Connection Manager
Access SQL Join Statement in VBA - Help
Inserting XML data int an nText field in SQL 2005
Migration from NT4 PDC to 2003 AD... NT4 SP6 AWOL!
Create report out of crosstab where column name changes
Can't save Access 2003 report with specific printer under Access 2007
how to create a TreeView and Bind its nodes to a DataTable?
Want to update a field with values from another field within the same table if it meets a condition
PrivateProfileString