PC Review


Reply
Thread Tools Rate Thread

Combobox valuemember

 
 
Cdude
Guest
Posts: n/a
 
      19th Jun 2008
Please can anyone tell me how to display the valuemember of a combobox
which is databound I have tried
MessageBox.Show(Combobox1.ValueMember.ToString()) this displays the
Column name to which the valuemember is databound.
 
Reply With Quote
 
 
 
 
Cdude
Guest
Posts: n/a
 
      19th Jun 2008
On Jun 19, 9:29 am, Cdude <camelj...@yahoo.com> wrote:
> Please can anyone tell me how to display the valuemember of a combobox
> which is databound I have tried
> MessageBox.Show(Combobox1.ValueMember.ToString()) this displays the
> Column name to which the valuemember is databound.


combo.selectedvalue
thanks
 
Reply With Quote
 
Duggi
Guest
Posts: n/a
 
      19th Jun 2008
On Jun 19, 12:29*pm, Cdude <camelj...@yahoo.com> wrote:
> Please can anyone tell me how to display the valuemember of a combobox
> which is databound I have tried
> MessageBox.Show(Combobox1.ValueMember.ToString()) this displays the
> Column name to which the valuemember is databound.


ComboBox.SelectedItem
ComboBox.SelectedText
ComboBox.SelectedIndex
ComboBox.SelectedValue

One or combination of the above will solve your issue. For the return
values checkout MSDN Documentation at

http://msdn.microsoft.com/en-us/libr...x_members.aspx


-Cnu.

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
ComboBox ValueMember = Null??? Can't set ValueMember! Spam Catcher Microsoft VB .NET 5 13th Jun 2007 03:50 PM
valuemember and displaymember for a combobox Sam Microsoft VB .NET 2 19th Apr 2005 12:31 PM
ComboBox and ValueMember Phill. W Microsoft VB .NET 1 14th May 2004 04:09 PM
ComboBox ValueMember Jim Heavey Microsoft C# .NET 1 2nd Mar 2004 03:48 PM
Re: ComboBox - ValueMember Ahto Truu Microsoft Dot NET Framework Forms 0 14th Jul 2003 02:10 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 04:32 PM.