Hi
I have a DataGridView and am adding columns at runtime. One particular column is a ComboBox column. I have populated it but when I come to run the program, the ComboBoxes are in the relevant cells but don't drop down when you click on them! My code is below:
Any help would be great! ThanksCode:With DataGridView1 Dim Penalty As New DataGridViewComboBoxColumn With Penalty .Name = "Penalty" .HeaderText = "Penalty" .Width = 40 .Visible = True .ReadOnly = False .Items.Add("1") .Items.Add("3") .Items.Add("4") .Items.Add("5") .Items.Add("6") .Items.Add("7") .Items.Add("8") .Items.Add("11") End With DataGridView1.Columns.Insert(6, Penalty) End With![]()




Reply With Quote