PC Review


Reply
Thread Tools Rate Thread

Bind a comboBox to the current record in the dataset

 
 
dbuchanan
Guest
Posts: n/a
 
      11th May 2005
Hello,

I want the comboBox to display the appropriate displayMember when the
valueMember is stored in the dataset.

Explanation:
The data source of my comboBox is a lookup table. The user will select
a value in the comboBox and a key (the ID in the lookup table) will be
stored in the data table.

On my form is a datagrid that displays all the rows in the data table.
The current record is bound to a series of controls on the form of
which one is the comboBox.

I know how to bind my comboBox to the lookup table. I know how to bind
my dataGrid to my dataTable.

But how do I tie them together?
I suppose that I want to bind the ValueMember of my comboBox to the
current record some how, But how do I make this happen?

It needs to be able to perform the following tasks;
1.) The comboBox must displays the appropriate DisplayMember associated
with the Value member that is stored in the dataTable
2.) The comboBox must be able to update the column in my dataTable.

Thank you,

- Doug

 
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: Update a value in current record before changing the ComboBox Value disneygoof via AccessMonster.com Microsoft Access Form Coding 2 17th Mar 2008 02:43 PM
ComboBox Current Record Pointer =?Utf-8?B?U3RldmUgUw==?= Microsoft Access Form Coding 3 25th Oct 2006 01:57 AM
Bind / Synchronize a comboBox to a filed the current record dbuchanan Microsoft VB .NET 1 15th May 2005 05:19 PM
Current record of datatable in dataset Paul Aspinall Microsoft ADO .NET 1 24th Jan 2005 11:14 AM
dataset relation current record MajorTom Microsoft C# .NET 0 4th May 2004 08:27 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 06:47 AM.