DotNetNewsgroup.com  
web access to complete list of Microsoft.NET newsgroups
   home   |   control panel login   |   archive  |  
 
  carried group
academic
adonet
aspnet
aspnet.announcements
aspnet.buildingcontrols
aspnet.caching
aspnet.datagridcontrol
aspnet.mobile
aspnet.security
aspnet.webcontrols
aspnet.webservices
assignment_manager
datatools
dotnet.distributed_apps
dotnet.general
dotnet.myservices
dotnet.nternationalization
dotnet.scripting
dotnet.security
dotnet.vjsharp
dotnet.vsa
dotnet.xml
dotnetfaqs
framework
framework.clr
framework.compactframework
framework.component_services
framework.controls
framework.databinding
framework.drawing
framework.enhancements
framework.interop
framework.odbcnet
framework.performance
framework.remoting
framework.sdk
framework.setup
framework.webservices
framework.windowsforms
framework.wmi
frwk.windowsforms.designtime
lang.csharp
lang.jscript
lang.vb
lang.vb.controls
lang.vb.data
lang.vb.upgrade
lang.vc
lang.vc.libraries
  
 
start date: Thu, 12 Jul 2007 18:21:51 +0200,    posted on: microsoft.public.dotnet.languages.vb.controls        back       

Thread Index
  1    Michel Vanderbeke


Retrieving the ValueMember of a combobox.   
Hello,

The datasource of a combobox and the datasource of a datagridview are one
and the same bindingsource.

The combobox has a DropDown DropDownStyle, in order to be able to enter data
manually in the textbox of the combobox.

When I choose data from the dropdownlist, I can retrieve the corresponding
ValueMember of that item.
When I enter a value (that is an item of the dropdownlist) manually in the
textbox of the combobox, no ValueMember is passed.


My questions are:

1 How can I get the ValueMember of the item I manually type in the textbox
of the combobox, providing of course it is an item that is part of the
dropdownlist?

2 How can I detect if the value typed manually is an item belonging to the
dropdownlist?

2 How can I make sure the corresponding row in the datagridview is
positioned on top of the datagrid (as first visible row)?


Many thanks and greetings from Brugge (Bruges - Belgium),

Michel
Date:Thu, 12 Jul 2007 18:21:51 +0200   Author:  

Google
 
Web dotnetnewsgroup.com


COPYRIGHT ?2005, EUROFRONT WORLDWIDE LTD., ALL RIGHT RESERVE  |   Contact us