473,387 Members | 1,771 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

sync combo boxes in datagridview

Hi All,
slight problem I hope someone could shed some light on.

I am using VS 2005.

In a datagridview I have 2 comboboxes that are both bound to a table field
called "empCode". This is an employee code.

I have a lookup datatable which I populate Employees employee code (empcode)
and and employee name.

I then have a dataview and a bindingsource which are bound to this datatable.

I then bind the two combo boxes to the bindingsource (ie they are both bound
to the same BS).

Now, when the user selects a value in the combo box in the datagridview, I
would expect the other combo box to move to the same value and display it.

This does not work however. Can anyone recommend a way?

thanks
Jan 12 '07 #1
1 1281
Can you show your code for doing the bindings?

Robin S.
-----------------------------------------------------
"Redback" <Re*****@discussions.microsoft.comwrote in message
news:7E**********************************@microsof t.com...
Hi All,
slight problem I hope someone could shed some light on.

I am using VS 2005.

In a datagridview I have 2 comboboxes that are both bound to a table
field
called "empCode". This is an employee code.

I have a lookup datatable which I populate Employees employee code
(empcode)
and and employee name.

I then have a dataview and a bindingsource which are bound to this
datatable.

I then bind the two combo boxes to the bindingsource (ie they are both
bound
to the same BS).

Now, when the user selects a value in the combo box in the
datagridview, I
would expect the other combo box to move to the same value and display
it.

This does not work however. Can anyone recommend a way?

thanks

Jan 12 '07 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Krisa | last post by:
Hello all, I just discovered something (stop me if you've heard this before....) that was causing me a significant performance hit when opening a form with subforms. To speed up loading the...
0
by: Tom | last post by:
I have some very strange issues with combo boxes on a tab control. Here's the scenario: I have a Windows Forms form that has a tab control on it, with two (2) tabs. Tab 2 happens to have a number...
7
by: Ausclad | last post by:
Ok, ill try again..... It seems fairly simple. I have two combo boxes in a datagrid. The datagrid is bound to a a table in a dataset. The two combo boxes are bound to a single data table...
1
by: BD | last post by:
I am running VS 2005 writing in C# accessing remote SQL Server 2005 database. I want to develope a custom listing of the relationship between Customers and Locations (one to many) in a combo box. ...
4
by: Dave | last post by:
I wasn't sure how to search for previous posts about this, it felt real specific. Ok so here's the database & problem: I have 4 combo boxes: cboServer, cboPolicy, cboDB, and cboApplication. ...
6
by: Dave | last post by:
I want to put the information that the user selects in my combo boxes into a subform that lies on the same form as the combo boxes. Thanks for your help already, Dave
1
by: Dave | last post by:
Hello all, First I'd like to apologize...This post was meant to be put in my previous post, but I tried many times without success to reply within my previous post. Now here goes... I have a...
2
by: Dave | last post by:
I have 3 tables of information feeding into 4 combo boxes on my main form (DR Form). I have as many list boxes (acting as text boxes) as there are fields in each one of the 3 tables. Once...
4
by: JB | last post by:
Hi All, I have a DataGridView in which some columns are combo boxes (i.e. DataGridViewComboBoxColumn). I populate these Combo Boxes directly by using code like this: Dim NewCol As New...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.