473,809 Members | 2,740 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

BindingManagerB ase

Joe
can someone help me with this code

(1) daNewEmployer.F ill(DsNewEmploy er)
(2) daNewEmployee.F ill(DsNewEmploy er)
(3)bmbEmployer = BindingContext( DsNewEmployer, "Employer")

I am trying to fill a the bindingmanagerb ase with two
tables in the third line of code. However, it only takes
two arguments, the dataset "DsNewEmplo yer" and the
table "Employer". I need to add the "Employee" table to
the same data set i.e. "DsNewEmployer" . Can some one help
me.Thanks in advance
Nov 20 '05 #1
4 1955
You don't want to do this through your binding manager. Instead, I would
define the relationships in your dataset, or build a "composite" table to
display the info you want.
"Joe" <an*******@disc ussions.microso ft.com> wrote in message
news:00******** *************** *****@phx.gbl.. .
can someone help me with this code

(1) daNewEmployer.F ill(DsNewEmploy er)
(2) daNewEmployee.F ill(DsNewEmploy er)
(3)bmbEmployer = BindingContext( DsNewEmployer, "Employer")

I am trying to fill a the bindingmanagerb ase with two
tables in the third line of code. However, it only takes
two arguments, the dataset "DsNewEmplo yer" and the
table "Employer". I need to add the "Employee" table to
the same data set i.e. "DsNewEmployer" . Can some one help
me.Thanks in advance

Nov 20 '05 #2
can you give me an example of either one? I am new to
database programming with ado.net and as such I have not
seen one done before.

Thanks Joe
-----Original Message-----
You don't want to do this through your binding manager. Instead, I woulddefine the relationships in your dataset, or build a "composite" table todisplay the info you want.
"Joe" <an*******@disc ussions.microso ft.com> wrote in messagenews:00******* *************** ******@phx.gbl. ..
can someone help me with this code

(1) daNewEmployer.F ill(DsNewEmploy er)
(2) daNewEmployee.F ill(DsNewEmploy er)
(3)bmbEmployer = BindingContext (DsNewEmployer, "Employer")
I am trying to fill a the bindingmanagerb ase with two
tables in the third line of code. However, it only takes two arguments, the dataset "DsNewEmplo yer" and the
table "Employer". I need to add the "Employee" table to
the same data set i.e. "DsNewEmployer" . Can some one help me.Thanks in advance

.

Nov 20 '05 #3
Alright, in your dataset designer, First of all, set your keys, which I'm
sure you have done. you can do this by right clicking on the table.

Click on your child table, right click, choose new relationship, set your
parent and child tables (your child table will be your parent because of the
key) and associate the fields.

Save and readd this dataset to your windows form designer. When you go to
bind any control, there will be a new subsection in the datamember property
that shows your relationship name, click on it, and you have access to all
the related sub fields. The joins are taken care of by the database.

if you still have problems, email me your dataset and project, I'll set it
up for you and write a little HOWTO, on what I did. Sound cool?

-CJ
<an*******@disc ussions.microso ft.com> wrote in message
news:32******** *************** *****@phx.gbl.. .
can you give me an example of either one? I am new to
database programming with ado.net and as such I have not
seen one done before.

Thanks Joe
-----Original Message-----
You don't want to do this through your binding manager.

Instead, I would
define the relationships in your dataset, or build

a "composite" table to
display the info you want.
"Joe" <an*******@disc ussions.microso ft.com> wrote in

message
news:00******* *************** ******@phx.gbl. ..
can someone help me with this code

(1) daNewEmployer.F ill(DsNewEmploy er)
(2) daNewEmployee.F ill(DsNewEmploy er)
(3)bmbEmployer = BindingContext (DsNewEmployer, "Employer")
I am trying to fill a the bindingmanagerb ase with two
tables in the third line of code. However, it only takes two arguments, the dataset "DsNewEmplo yer" and the
table "Employer". I need to add the "Employee" table to
the same data set i.e. "DsNewEmployer" . Can some one help me.Thanks in advance

.

Nov 20 '05 #4
Joe
Hey Taylor,
I was referring to BindingContext and not the
BindingManagerb ase. My apologies. The two tables were
the "Employer" table and the "Employee" table. The first
code I had was

bmbEmployer = Me.BindingConte xt(DsNewEmploye r, "Employer")

I need the Employer and Employee table to refer to the
same dataset.

The "DsNewEmplo yer" the dataset, however it holds the
Employer and the Employee info. I know it is bad
programming practice to name the dataset this way but I
am going to change it.

-----Original Message-----
You don't want to do this through your binding manager. Instead, I woulddefine the relationships in your dataset, or build a "composite" table todisplay the info you want.
"Joe" <an*******@disc ussions.microso ft.com> wrote in messagenews:00******* *************** ******@phx.gbl. ..
can someone help me with this code

(1) daNewEmployer.F ill(DsNewEmploy er)
(2) daNewEmployee.F ill(DsNewEmploy er)
(3)bmbEmployer = BindingContext (DsNewEmployer, "Employer")
I am trying to fill a the bindingmanagerb ase with two
tables in the third line of code. However, it only takes two arguments, the dataset "DsNewEmplo yer" and the
table "Employer". I need to add the "Employee" table to
the same data set i.e. "DsNewEmployer" . Can some one help me.Thanks in advance

.

Nov 20 '05 #5

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

Similar topics

15
3687
by: Tim Jarvis | last post by:
Hi, I have an object that I am binding to a text box, this object exposes a boolean field, and I have implemented a format event handler and a parse event handler for the binding object, where I convert the bool value to some meaningful text. i.e. Binding b = new
4
6276
by: Christopher Weaver | last post by:
How do I retrieve the position value after successfully finding the row that I'm looking for? I need to set BindingManagerBase.Position so that all of the controls on the form are synchronized. Is there another way of moving to a particular record within a dataset given the value of the key?
1
3195
by: Greg | last post by:
I have a data entry form with a grid. When the user changes data in a column, and then clicks the Red X of the form to close it, I trap this in the Closing event. I first call the BMB.EndCurrrentEdit, and then call code to save the data. The issue is that the data of the current cell in the grid is lost dispite all of the above. If the user takes any other action first before closing the form, then all is OK. But if he goes right to...
4
1744
by: Jesse Villani | last post by:
I will get this eventually, I have a combobox on a form which is bound to a dataset and displays correct values in the list. When i select a value from the list, i check to see what is the current row in a bindingManagerBase object is in the selectedValue event handler code. I print out, on labels the following values: bmb.Count and bmb.Position where bmb is the bindingManagerBase object.
0
1074
by: johnb41 | last post by:
I have a simple form with textboxes displaying records from a dataset. To Add a record, i simply do this (successfully): ' bmb variable holds the me.bindingcontext(dataset, "table"), which returns a BindingManagerBase object Private Sub btnAdd_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnAdd.Click
1
1450
by: dbuchanan52 | last post by:
My newly added row will not become current. I have several textboxes bound to a DataGrid1 and a couple of buttons including 'btnNewRecord'. The datagrid is bound to a table in a dataset. What happen is that btnNewRecord adds a new row to DataGrid1 as expected, however the active row does not move to the newly added row! What am I missing?
1
1197
by: Vladimir Nesterovsky | last post by:
I've found this curious code in the System.Windows.Forms.dll: Class: System.Windows.Forms.BindToObject internal void CheckBinding() { if (((this.owner == null) || (this.owner.BindableComponent == null)) || !this.owner.ControlAtDesignTime()) {
3
9678
by: michael sorens | last post by:
I have generated an XmlDocument, then bound it to a DataGridView (thanks to a pointer from PeterBromberg in a separate, recent posting). Now I want to connect a BindingNavigator, but my rudimentary attempt failed. In the Visual Designer I added a BindingSource bs, then a BindingNavigator bn, and assigned bs to the BindingSource property of bn. In code, I generate my XmlDocument, massage it to fit into a DataSet, then assign it to the...
4
1385
by: Dave | last post by:
I have a BindingManagerBase which is used witha stored precudure. When I try to execute the statement: this.BindingContext I get the error: System.ArgumentException was unhandled. Message="Child list for field table1 cannot be created." L. A. Jones
0
9721
marktang
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 usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
10637
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10376
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
10379
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
10115
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...
0
9199
agi2029
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 launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
5550
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5687
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
3861
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.