I'm trying to bind a DataTable to a ComboBox and I'm getting the error below (see screenshot). Also, I posted my code below but I remember once that I was unable to programmatically assign a DataMember/ValueMember to a ComboBox. Maybe I was doing something wrong. Here is my code below.
Private Sub GetMerchants(ByVal iAcctID As Integer)
Dim dt As New DataTable
dt = BL.GetMerchants(iAcctID)
cmbMerchants.DataSource = Nothing
cmbMerchants.DataSource = dt(0)
cmbMerchants.ValueMember = "merchantID"
Catch ex As Exception
gstrErr = "frmTransactions/GetMercha
nts() - " & ex.Message
MessageBox.Show(gstrErr, "User Notification", MessageBoxButtons.OK, MessageBoxIcon.Error)