PC Review


Reply
Thread Tools Rate Thread

comboBox Databinding

 
 
WillieJoe
Guest
Posts: n/a
 
      9th Sep 2003
Hi,

I have several controls on a TabControl - one being a
ComboBox (DropDown) with a list of Items hard coded with
the .add method.

I have the "SelectedItem" property of the ComboBox
Databound to a element in a Datatable.

My problem is when I select an item in the combobox, the
Datatable isn't updated until I select another control on
the TabControl - which might not happen!!

My question is how do I get the Databinding to take effect
as soon as the user selects an item from the ComboBox?

Thanks again for everything,
Willie
 
Reply With Quote
 
 
 
 
Alex Feinman [MVP]
Guest
Posts: n/a
 
      9th Sep 2003
Try instead using the DataTable (or a DataView based on it) as the combobox
datasource and bind that element via ValueMember

"WillieJoe" <(E-Mail Removed)> wrote in message
news:410f01c376f0$bfbe6360$(E-Mail Removed)...
> Hi,
>
> I have several controls on a TabControl - one being a
> ComboBox (DropDown) with a list of Items hard coded with
> the .add method.
>
> I have the "SelectedItem" property of the ComboBox
> Databound to a element in a Datatable.
>
> My problem is when I select an item in the combobox, the
> Datatable isn't updated until I select another control on
> the TabControl - which might not happen!!
>
> My question is how do I get the Databinding to take effect
> as soon as the user selects an item from the ComboBox?
>
> Thanks again for everything,
> Willie



 
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
databinding to a combobox Matthijs de Z Microsoft C# .NET 1 29th Mar 2009 02:59 PM
Databinding Combobox cbrown@duclaw.com Microsoft VB .NET 2 8th Dec 2005 05:07 PM
DataBinding ComboBox Aaron Prohaska Microsoft Dot NET Framework Forms 1 9th Apr 2004 08:26 PM
Databinding & Combobox francesco Microsoft VB .NET 1 2nd Feb 2004 01:43 PM
RE: ComboBox DataBinding Scot Rose [MSFT] Microsoft Dot NET Framework Forms 0 19th Aug 2003 02:20 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 01:42 AM.