Hey everyone. I have a combox that I want to display two fields in. For instance, I have the following:
Right now, it is displaying the LastName. I also want it to display a field called FirstName. Can someone point me in the direction on how to do that?
Thanks.
VB.NET:
con.Open()
sql = "Select * From Tech"
da = New OleDb.OleDbDataAdapter(sql, con)
da.Fill(ds, "Tech")
con.Close()
cboTech.DataSource = ds.Tables("Tech").DefaultView
cboTech.DisplayMember = "LastName"
cboTech.ValueMember = "LastName"
cboTech.SelectedIndex = -1
Right now, it is displaying the LastName. I also want it to display a field called FirstName. Can someone point me in the direction on how to do that?
Thanks.