Do not get along with not very rough things, like creating assemblies using Emit. How would you use such a jumper? What is the real goal here?
EDIT: Now that we know what you really want to do, this page means that you can get your ideal goals using code like the following:
private void listViewComplex_CellEditStarting(object sender, CellEditEventArgs e) { // Ignore edit events for other columns if (e.Column != this.columnThatYouWantToEdit) return; ComboBox cb = new ComboBox(); cb.Bounds = e.CellBounds; cb.Font = ((ObjectListView)sender).Font; cb.DropDownStyle = ComboBoxStyle.DropDownList; cb.Items.AddRange(new String[] { "Single", "Married", "Divorced" }); cb.SelectedIndex = 0; // should select the entry that reflects the current value e.Control = cb; }
source share