I am using vb.net and populating dropdownlist in GridView1. I get the values and fill it in drop down. When I click on the drop down it is not doing anything. Seems it has only one value at the index 0. not at 1 and 2. Please help here is my code
Private Sub GetCustomerBaseLine() Dim CustomerDS As New DataSet CustomerDS = DisplayCustomerBaseLine() Dim comboBoxCol As New DataGridViewComboBoxColumn 'comboBoxCol.HeaderText = "ChangeIn_Ranking" comboBoxCol.HeaderText = "Current_Customer_Status" Dim bindSource As New BindingSource Dim i As Integer For i = 0 To CustomerDS.Tables(0).Rows.Count - 1 Dim customerBaseLine As String = CustomerDS.Tables(0).Rows(i).Item(0).ToString If customerBaseLine = "" Then
Else
bindSource.Add(customerBaseLine)
End If
Next
comboBoxCol.Width = 150
comboBoxCol.DataSource = bindSource
comboBoxCol.DataPropertyName = "Current_Customer_Status"
DataGridView1.Columns.Add(comboBoxCol)
End Sub 'GetCustomerBaseLine