473,804 Members | 2,719 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Two combo box with same data adapter in same dataset.

Hi,

I have created a entry module with data binding , I have two combo box with
same data adapter with same data set. when I change the first combobox's
value, there is automatically changed to second combo box also as it has
same data adapter.

If I want to use both combo box diffrently , how can I ?

Hardik Shah.
Jan 28 '06 #1
1 1481
Hi,

The currency manager will keep control bound to the same datasource
in sync. Create a dataview from that data and bind one of the comboboxes to
that.

Ken
--------------
"Hardik Shah" <ha********@hot mail.com> wrote in message
news:OB******** ********@TK2MSF TNGP09.phx.gbl. ..
Hi,

I have created a entry module with data binding , I have two combo box
with
same data adapter with same data set. when I change the first combobox's
value, there is automatically changed to second combo box also as it has
same data adapter.

If I want to use both combo box diffrently , how can I ?

Hardik Shah.

Jan 28 '06 #2

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

Similar topics

5
2463
by: Rick | last post by:
The data adapter wizard allows you to add more than one table, but that doesn't seem to work right when setting up a dataset. Some of the documentation I have read states that only one table should be selected per data adapter, and then you use a DataRelation object to pull join them together. Okay, if that's the case then fine, but why would the data adapter allow you to add more than one table if this is not how it is supposed to work....
4
1835
by: William | last post by:
After much frustration I was able to update my data store via code only. Using the data adapter was the only way I was able to set up all the objects written in my code. Basically, I cheated by creating an adapter and then copy, paste, modify it's code to suite my needs. This was the end result: Private sub updateTable( ) Dim myData As DataSet 'Command is a form level oledbcommand object Dim Adapter1 As New OleDbDataAdapter(Command)
3
1014
by: TS | last post by:
I configured a data adapter and generated a dataset and wrote the code to fill the dataset with data coming from an SQL database table when my form loads. I also changed the DataSource of a combo box to point to the dataset.tablename and changed the DisplayMemebr to point at a column. After the form loads nothing is populated in the combo box? Is there something I'm missing. Please help -- TS
2
1324
by: TS | last post by:
I configured a data adapter and generated a dataset to access data coming from an SQL database table when my form loads. After the form loads nothing is populated in the combo box that supposed to be bound to a column in the database table. Someone in this newsgroup thankfully told that I still have to write some codes to populate the combo box with data. Here is the code he sent me and that I tried on my application. The codes return the...
6
1598
by: Jean Christophe Avard | last post by:
Hi! I'm designing an application that produces invoices. I have a combobox that is populated with the Name of every client in the database. What I would like to do is to have the combobox to display the name, and to have the value set to the ID of the record... Like in HTML where you have something like: <option value="ID_NUMBER(primary key)">CLIENT_NAME</option> so, let's say the user selects "Client #2" in the combo box, then I would...
1
1140
by: Robert Boudra | last post by:
I used the data form and data adapter wizards to build a data entry form. However, rather than using text boxes for all of the fields, I would like to use dropdown lists for some of the fields. What's the best way to populate the selection list from a lookup table in my database. Bob
4
11797
by: Elena | last post by:
Hi, I am filling in a combobox. I would like to concatenate two fields into the data combo box and display "last name, first name" I tried to displaymember = "employee_last_name" & ", " & "employee_last_name", but it did not like that. I can fill the combo box with either the first or the last, but I cannot manage to concatenate it.
3
4483
by: TomH | last post by:
I am using VB within VS 2005. How can I have multiple datagridviews on the same form pulling from the same table? e.g. I want to see all clients from New York in one view and all clients from LA in another view on the same form. I've set up a parameterized tableadapter and pass it the city. How can I load the two views in VB code when the form loads? Thanks, Tom
3
1189
by: =?Utf-8?B?QW5keSBD?= | last post by:
Hi, Does anyone have an example code snippet from a Windows App that loads a field from a strongly typed DataSet into a Combobox? Even dissecting the DataSet via the Immediate Pane I still can't work out what part of the DataSet I need to load. Thanks very much. Andy
0
9577
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10325
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10315
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
10075
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
7615
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6847
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5651
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4295
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3815
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.