The following code populates cmbSelectCustomer
with CustomerID and works fine. I want display CustName by incorporating something like this with the LINQ:
Let CustName = c.FirstName & " " & c.LastName
And also have in code:
cmbSelectCustomer.DisplayMember = "CustName"
cmbSelectCustomer.ValueMember = "CustomerID"
Question: How can I revise this code to do above items?
' LOAD THE DATA TABLE
Dim Cs = From c In db.tblCustomers _
Order By c.CustomerID _
For Each cust In Cs