I have what I thought was a relatively simple data situation that I can't
seem to get working using ADO.NET datasets and data binding.
I have an "Issues" table which records the UserID of the user that opens,
closes and is assigned to the Issue. These come from the same group of
users, so they are all related to a "Users" table. I have three combo boxes
on a form. I set up the binding as shown below. It works when the form is
loaded, but when I change one of the combo boxes, they all change. Based on
what I've read, I believe I need a different BindingManagerB ase for each
combo box, but I've been unable to find an example of how to actually do
this. Can anyone help?
'Closed By
cboClosedBy.Dat aSource = dsAppData.Table s("Users")
cboClosedBy.Dis playMember = "UserName"
cboClosedBy.Val ueMember = "UserID"
cboClosedBy.Dat aBindings.Add(" SelectedValue", dvIssue, "ClosedBy")
'Opened By
cboOpendBy.Data Source = dsAppData.Table s("Users")
cboOpendBy.Disp layMember = "UserName"
cboOpendBy.Valu eMember = "UserID"
cboOpendBy.Data Bindings.Add("S electedValue", dvIssue, "OpenedBy")
'Assigned To
cboAssignedTo.D ataSource = dsAppData.Table s("Users")
cboAssignedTo.D isplayMember = "UserName"
cboAssignedTo.V alueMember = "UserID"
cboAssignedTo.D ataBindings.Add ("SelectedValue ", dvIssue, "AssignedTo ") 1 2268
This question is best answered in the adonet newsgroups.
OHM
Young J. Putt wrote: I have what I thought was a relatively simple data situation that I can't seem to get working using ADO.NET datasets and data binding. I have an "Issues" table which records the UserID of the user that opens, closes and is assigned to the Issue. These come from the same group of users, so they are all related to a "Users" table. I have three combo boxes on a form. I set up the binding as shown below. It works when the form is loaded, but when I change one of the combo boxes, they all change. Based on what I've read, I believe I need a different BindingManagerB ase for each combo box, but I've been unable to find an example of how to actually do this. Can anyone help?
'Closed By cboClosedBy.Dat aSource = dsAppData.Table s("Users") cboClosedBy.Dis playMember = "UserName" cboClosedBy.Val ueMember = "UserID" cboClosedBy.Dat aBindings.Add(" SelectedValue", dvIssue, "ClosedBy") 'Opened By cboOpendBy.Data Source = dsAppData.Table s("Users") cboOpendBy.Disp layMember = "UserName" cboOpendBy.Valu eMember = "UserID" cboOpendBy.Data Bindings.Add("S electedValue", dvIssue, "OpenedBy") 'Assigned To cboAssignedTo.D ataSource = dsAppData.Table s("Users") cboAssignedTo.D isplayMember = "UserName" cboAssignedTo.V alueMember = "UserID" cboAssignedTo.D ataBindings.Add ("SelectedValue ", dvIssue, "AssignedTo ") This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: CSDunn |
last post by:
Hello,
I have a situation in which I need to address three SQL Server 2000
Stored Procedure parameters in the OnClick event of an Option Group.
The Option Group lives on an Access 2000 ADP form.
In another situation where I had to set the RowSource of a combo box
based on a parameter value that was delivered to a proc from another
combo...
|
by: Ron L |
last post by:
I have a dataset whose source is a SQL 2k stored procedure that I am trying
to display in a datagrid. This datasource has 4 columns that I am
interested in here, a text column and 3 value columns corresponding to
permissions to certain data classes. I want to put the permission values in
combo boxes in the grid and instead of displaying the...
|
by: lorirobn |
last post by:
Hi,
I have a form with several combo boxes, continuous form format, with
record source a query off an Item Table. The fields are Category,
Subcategory, and Color. I am displaying descriptions, not ID's, so I
have to convert the ID's from various lookup tables.
The combo boxes work fine except for subcategory, which is dependent on...
|
by: Edwinah63 |
last post by:
Hi everyone,
Please let there be someone out there who can help.
I have two BOUND combo boxes on a continuous form, the second being
dependent on the first. I have no problem getting the second combo to
change depending on what values the user selects in the first box, it's
just that every time the user changes the first combobox, the...
|
by: =?Utf-8?B?UmVkYmFjaw==?= |
last post by:
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.
| |
by: debbie |
last post by:
I have three combo boxes on a subform. I have tried setting them up so
that when the user clicks in the combo box the curser moves to the
left. I have searched the posts and can find nothing that answers my
problem....no matter what I have tried....on click, set focus, got
focus...one combo box works and the other two start one space from...
|
by: =?Utf-8?B?Y2RtdW5veg==?= |
last post by:
I have created a sub routine to programmatically add an indefinite number of
combo boxes to a form. The combo boxes are bound in code to a view for
displaying the available options. This routine works good until you add the
second combo box. At that point it changes the first combo box's selected
item. A third changes the second and first...
|
by: Dawnyy |
last post by:
I have a form which is bound to a dataset. I am filling the forms dataset on Form_Load event.
On my form I have combo boxes which I am setting by running a stored procedure to return a datatable, which I then assign to the datasource.
Some of my combo box datasources depend on values in other fields to limit the options.
For example, I...
|
by: sree078 |
last post by:
I've a list of items which I bound to multiple combo boxes.
In the due course in the code...I had to add an item into one combo box...but I don't want it to be reflected into any other combo boxes...How should I do that...
As when I'm trying to add an item...it is being shown in all the combo boxes.
private void FillMethod()
{
...
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main...
|
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...
| |
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...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then...
|
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...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
|
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
|
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating...
| |