Filling Combobox with cobobox.SelectedValue
I'm looping through a table and using concatenation to display tow fields in the combobox. (Example, Firstname Lastname) "John Doe". I'm setting my displaymember = the concatenated string "fullname". I'm setting my valuemember as "firstname" only. So when I selected "John Doe", I'm only wanting "John" to appear in the combobox text. This is what I'm having trouble doing, what am I doing wrong or can this even be done?
cbo1.text = "John Doe"
cbo1.text = ""
cbo1.text = cbo1.selectedvalue ("John")
The combobox still displays "John Doe" and NOT just "John". Any ideas????
Thanks in advance!
By diana_j86 in forum .NET
Last Post: 09-06-2013, 04:44 AM
Last Post: 06-10-2013, 09:01 PM
By JFeng in forum ASP.NET
Last Post: 04-01-2008, 03:25 PM
By saidev in forum ASP.NET
Last Post: 12-28-2005, 05:55 AM
By anonymous in forum VB Classic
Last Post: 07-06-2002, 02:33 PM
Top DevX Stories
Easy Web Services with SQL Server 2005 HTTP Endpoints
JavaOne 2005: Java Platform Roadmap Focuses on Ease of Development, Sun Focuses on the "Free" in F.O.S.S.
Wed Yourself to UML with the Power of Associations
Microsoft to Add AJAX Capabilities to ASP.NET
IBM's Cloudscape Versus MySQL