Go Back  Xtreme Visual Basic Talk > Visual Basic .NET (2002/2003/2005/2008, including Express editions) > .NET General > Selecting a Combo Box within X ValueMember


Reply
 
Thread Tools Display Modes
  #1  
Old 01-21-2004, 08:03 AM
Mikecrosoft's Avatar
Mikecrosoft Mikecrosoft is offline
Mexican Coder
 
Join Date: Jun 2002
Location: Monterrey, N.L., Mexico
Posts: 2,793
Default Selecting a Combo Box within X ValueMember


Hi


I found finally how to fill a combobox with hidden data from a DataTable information:

Code:
CboTest.DisplayMember = FieldTextName CboTest.ValueMember = FieldIDName CboTest.DataSource = MyDataTable

Ok, this works great, but my next problem is, how I can select the item with the specified ValueMember ????

Thanks

Mike
__________________
Mikecrosoft.NET
* If I stop to ask I will stop to learn
* Just I know that I don't know nothing
Reply With Quote
  #2  
Old 01-21-2004, 08:10 AM
Mikecrosoft's Avatar
Mikecrosoft Mikecrosoft is offline
Mexican Coder
 
Join Date: Jun 2002
Location: Monterrey, N.L., Mexico
Posts: 2,793
Default

Solved by good friend:

Code:
cboTest.SelectedValue = MyValue

Thanks Jimmy.NET
__________________
Mikecrosoft.NET
* If I stop to ask I will stop to learn
* Just I know that I don't know nothing
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
selecting from combo box S1mon General 13 06-22-2003 10:49 AM
selecting when non unique names in combo chrispatten3rd General 1 04-17-2003 03:22 AM
selecting text in a text box and combo box redbrad0 General 5 01-03-2003 09:38 AM
Variable lists in combo boxes CyberiaJohn General 3 10-06-2002 08:31 PM
Combo box event for selecting an item. esmithz General 2 08-30-2002 05:27 PM

Advertisement:





Free Publications
The ASP.NET 2.0 Anthology
101 Essential Tips, Tricks & Hacks - Free 156 Page Preview. Learn the most practical features and best approaches for ASP.NET.
subscribe
Programmers Heaven C# School Book -Free 338 Page eBook
The Programmers Heaven C# School book covers the .NET framework and the C# language.
subscribe
Build Your Own ASP.NET 3.5 Web Site Using C# & VB, 3rd Edition - Free 219 Page Preview!
This comprehensive step-by-step guide will help get your database-driven ASP.NET web site up and running in no time..
subscribe
 
 
-->