473,398 Members | 2,088 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,398 software developers and data experts.

BindingManagerBase not working with stored procedures

I have a BindingManagerBase which is used witha stored precudure. When I try
to execute the statement:
this.BindingContext[dataset1, "table1"]

I get the error: System.ArgumentException was unhandled. Message="Child
list for field table1 cannot be created."

L. A. Jones
Sep 4 '06 #1
4 1342
Dave,

Can you show the code that you are using that sets the data source on
your control? Without seeing that, it's hard to say.
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard.caspershouse.com

"Dave" <Da**@discussions.microsoft.comwrote in message
news:40**********************************@microsof t.com...
>I have a BindingManagerBase which is used witha stored precudure. When I
try
to execute the statement:
this.BindingContext[dataset1, "table1"]

I get the error: System.ArgumentException was unhandled. Message="Child
list for field table1 cannot be created."

L. A. Jones

Sep 4 '06 #2
BindingManagerBase bmProduct
bmProduct = this.BindingContext[dsfrmRestock_ProductSelect1, "Product"];
this.cmbProduct.DataSource = this.dsfrmRestock_ProductSelect1;
this.cmbProduct.DisplayMember = "frmRestock_ProductsSelectCommand.Name";
this.cmbProduct.ValueMember = "frmRestock_ProductsSelectCommand.Barcode";
bmProduct = this.BindingContext[dsfrmRestock_ProductSelect1, "Product"];
Sep 4 '06 #3

Sorry, I didn't state that the error is on last line below.

BindingManagerBase bmProduct
bmProduct = this.BindingContext[dsfrmRestock_ProductSelect1, "Product"];
this.cmbProduct.DataSource = this.dsfrmRestock_ProductSelect1;
this.cmbProduct.DisplayMember = "frmRestock_ProductsSelectCommand.Name";
this.cmbProduct.ValueMember = "frmRestock_ProductsSelectCommand.Barcode";
bmProduct = this.BindingContext[dsfrmRestock_ProductSelect1, "Product"];
Sep 4 '06 #4
Dave,

That's the problem. You are setting the data source to
"this.dsfrmRestock_ProductSelect1", and then getting the BindingContext for
the "Product" member in "this.dsfrmRestock_ProductSelect1". Your call
really needs to be:

bmProduct = this.BindingContext[dsfrmRestock_ProductSelect1];

That will give you the appropriate binding context.
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard.caspershouse.com

"Dave" <Da**@discussions.microsoft.comwrote in message
news:82**********************************@microsof t.com...
>
Sorry, I didn't state that the error is on last line below.

BindingManagerBase bmProduct
bmProduct = this.BindingContext[dsfrmRestock_ProductSelect1, "Product"];
this.cmbProduct.DataSource = this.dsfrmRestock_ProductSelect1;
this.cmbProduct.DisplayMember = "frmRestock_ProductsSelectCommand.Name";
this.cmbProduct.ValueMember = "frmRestock_ProductsSelectCommand.Barcode";
bmProduct = this.BindingContext[dsfrmRestock_ProductSelect1, "Product"];

Sep 5 '06 #5

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

Similar topics

11
by: jrefactors | last post by:
I want to know the differences between SQL Server 2000 stored procedures and oracle stored procedures? Do they have different syntax? The concept should be the same that the stored procedures...
2
by: scott | last post by:
Hi, Just wondering what sort of problems and advantages people have found using stored procedures. I have an app developed in VB6 & VB.NET and our developers are starting to re-write some of the...
1
by: Sampath Reddy | last post by:
Hi Everybody, We are using UDB v8.1 I will explain about my Stored procedures which we are executing in UDB AIX box. We have 3 millions(apporox) of data in 22 tables. By applying the business...
2
by: Kent Lewandowski | last post by:
hi all, Recently I wrote some stored procedures using java jdbc code (admittedly my first stab) and then tried to implement the same within java packages (for code reuse). I encountered...
5
by: Tim Marshall | last post by:
I was following the thread "Re: Access Treeview - Is it Safe Yet?" with interest and on reading the post describing Lauren Quantrell's SmartTree, I've run into something I don't understand: Stored...
28
by: mooreit | last post by:
The purpose for my questions is accessing these technologies from applications. I develop both applications and databases. Working with Microsoft C#.NET and Microsoft SQL Server 2000 Production and...
3
by: Aswanth | last post by:
Hi.., I'm having Two Stored Procedures in Two Different Databases.. Database1 - Employee Stored Procedure - Employee_Details Database2 - Company Stored Procedure - Company_Details
11
by: peter | last post by:
I am trying to get a SQL stored procedure to use user maintained MQT implicitly which raises questions on when they are used or not used. In theory you would expect the stored procedure to pick up...
0
by: zman77 | last post by:
Hi. My solution (working in VS 2008) has a C# console app, and a C# web service. The service has an entity data model. It has numerous stored procedures. For one of the stored procs, which just...
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: 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
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
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...
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
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,...
0
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...

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.