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
allow "Big Grid" in Excel
Set SelectedValue of DropdownList in EditItemTemplate of Gridview. Visual Studio 2005.
recdisc will not run
Why am getting this ASP.net / SQL 2008 logon message >
How to stop SQL Server 2005 restore in progress
execute script client code only after body complete load
Difference between Windows firewall and the SharedAccess service
Print PowerPoint document from a C# application
no value and value
Substitute function in Excel - Replace a comma by a comma with double quotes around it