I have a dynamic datatable, created from a database. I want to add a new row (blank), so there is an option to choose nothing in a combobx. Everything works ok, without adding the new row. But when I add a new row, the combobox displays nothing. What am I missing?
Here is the code
Dim DT As New DataTable
DT = DS.Tables("CallStatus")
Dim drNewRow As DataRow = DT.NewRow
'Add new row
drNewRow.Item("CampaignCallStatusID") = ""
drNewRow.Item("CampaignCallStatus") = ""
DT.Rows.Add(drNewRow)
DT.AcceptChanges()
'Fill combobox
With cboCallStatus
.DataSource = DT
.DisplayMember = "CampaignCallStatus"
.ValueMember = "CampaignCallStatusID"
End With