public void BOOK_COMBO2() { DataGridViewComboBoxCell cb_cell = new DataGridViewComboBoxCell(); DataGridViewComboBoxColumn cb_col = new DataGridViewComboBoxColumn(); // Contract field cb_col.Items.AddRange("AP-21-Apr-16", "HSI-28-Apr-16", ""); cb_col.FlatStyle = FlatStyle.Flat; cb_col.HeaderText = "newCONTRACT"; cb_col.Width = 50; cb_col.ValueType = typeof(string); grdBOOK.Columns.Insert(5, cb_col); foreach (DataGridViewRow item in grdBOOK.Rows) { item.Cells[5].Value = (string)item.Cells[3].Value; } }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)