DataGridViewComboBoxColumn cmb = new DataGridViewComboBoxColumn(); cmb.HeaderText = "Installation"; cmb.Name = "cmb"; cmb.MaxDropDownItems = 3; cmb.Items.Add("--SELECT--"); cmb.Items.Add("Pre-Installation"); cmb.Items.Add("Installation"); cmb.Items.Add("Post-Installation");
cmb.DefaultCellStyle.Alignment = DataGridViewContentAlignment.MiddleCenter;
cmb.SelectedIndex=0
dataGridView1.Rows[i].Cells[4].Value = "--Select--"
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)