i have 7 columns so when the form is loaded for the first time, the number of columns become 8 because of the insertion of the cmb.
so i use this code to prevent further insertion of cmb
If DataGridView.Columns.Count < 8 Then
Dim cmb As New DataGridViewComboBoxColumn()
cmb.HeaderText = "Promoted To"
cmb.Name = "cmb"
cmb.MaxDropDownItems = 4