DataGridViewComboBoxCell ComboBoxCell2 = new DataGridViewComboBoxCell(); ComboBoxCell2.DataSource = filteredOptions; ComboBoxCell2.DisplayMember = ComboboxColumn.DisplayMember; ComboBoxCell2.ValueMember = ComboboxColumn.ValueMember; ComboBoxCell2.FlatStyle = FlatStyle.Flat; ComboBoxCell2.DropDownWidth = 250;//shreyasimportant this.gdbgGrid[Columnindex, gdbgGrid.CurrentCell.RowIndex] = ComboBoxCell2; ComboBoxCell2.DisplayStyle = DataGridViewComboBoxDisplayStyle.DropDownButton;
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)