473,398 Members | 2,113 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.

A question about dataset loading

Hello all!
So I get the following error when I try to update my dataset from a windows
form. "Can't create a child list for field 'TableName'" This is the error I
get in my application, I found this error in the KB (Article ID : 816799 )
The error is built by design, and the cause is from in my case deleating the
table that was bound to a control. They do have a fix or a workaround by
modifying a line of code. My problem is I can't find the line of code they
speak of. The code is in the form, In the InitializeComponent procedure of
the Windows Form Designer generated code region, locate the following
statement in the Form1 code:

Microsoft Visual Basic .NET codeMe.Controls.AddRange(New
System.Windows.Forms.Control() {Me.TextBox2, Me.TextBox1, Me.ListBox1})

If i could find this, i could modify it, and hopefully it will fix my
problem. Of course, I could be totally off base, and this has nothing to do
with anything that I'm doing. Which means I will post again, LOL. If
somebody could take a peak at this KB, and see if this seems right, and tell
me what I'm missing.

As always, TIA!

Rudy

Nov 21 '05 #1
2 1062
Rudy,

The article you show is in my opinion a very bad article. It says that is
about beta (and probably the solution is beta), than it tells it applies to
all current non beta versions as well.

I do not know if the error still exist however it is possible. The addrange
is as far as I know not used as this, all controls are seperatly added to
the form.

Me.Controls.Add(Me.Button1)
Me.Controls.Add(Me.TextBox1)
Me.Controls.Add(Me.ComboBox1)

What you can do is check if that exist in the designer generated code and
the problem still exist like it is described in the article.

I hope it helps something?

Cor
"Rudy" <Ru**@discussions.microsoft.com>
Hello all!
So I get the following error when I try to update my dataset from a
windows
form. "Can't create a child list for field 'TableName'" This is the error
I
get in my application, I found this error in the KB (Article ID : 816799 )
The error is built by design, and the cause is from in my case deleating
the
table that was bound to a control. They do have a fix or a workaround by
modifying a line of code. My problem is I can't find the line of code they
speak of. The code is in the form, In the InitializeComponent procedure of
the Windows Form Designer generated code region, locate the following
statement in the Form1 code:

Microsoft Visual Basic .NET codeMe.Controls.AddRange(New
System.Windows.Forms.Control() {Me.TextBox2, Me.TextBox1, Me.ListBox1})

If i could find this, i could modify it, and hopefully it will fix my
problem. Of course, I could be totally off base, and this has nothing to
do
with anything that I'm doing. Which means I will post again, LOL. If
somebody could take a peak at this KB, and see if this seems right, and
tell
me what I'm missing.

As always, TIA!

Rudy

Nov 21 '05 #2
Hi Cor!

I'm glad I'm not the only one who found this confusing. I did find the
single controls like you have. I have looked at them, and they seem
consistent to what i have on my form. I even deleted and changed the names
of some controls, and it changes correctly in the code. I also built a new
test application, and try to recreate the problem, but everything was fine.
I have deleted and added DataSets and connections and controls in the process
of learning and trying new things to get a better understanding of what I'm
doing. I think the best thing to do is to start with a new application and
rewrite everything. I have a better understanding of what I'm doing thanks
to you and others on this forum for giving me pointers. At least I can set
my connection and Dataset correctly the first time, and not have to keep
changing things. I find it odd that you don't have the flexablitiy to change
things like this. Thanks for all your advise!

Rudy

"Cor Ligthert" wrote:
Rudy,

The article you show is in my opinion a very bad article. It says that is
about beta (and probably the solution is beta), than it tells it applies to
all current non beta versions as well.

I do not know if the error still exist however it is possible. The addrange
is as far as I know not used as this, all controls are seperatly added to
the form.

Me.Controls.Add(Me.Button1)
Me.Controls.Add(Me.TextBox1)
Me.Controls.Add(Me.ComboBox1)

What you can do is check if that exist in the designer generated code and
the problem still exist like it is described in the article.

I hope it helps something?

Cor
"Rudy" <Ru**@discussions.microsoft.com>
Hello all!
So I get the following error when I try to update my dataset from a
windows
form. "Can't create a child list for field 'TableName'" This is the error
I
get in my application, I found this error in the KB (Article ID : 816799 )
The error is built by design, and the cause is from in my case deleating
the
table that was bound to a control. They do have a fix or a workaround by
modifying a line of code. My problem is I can't find the line of code they
speak of. The code is in the form, In the InitializeComponent procedure of
the Windows Form Designer generated code region, locate the following
statement in the Form1 code:

Microsoft Visual Basic .NET codeMe.Controls.AddRange(New
System.Windows.Forms.Control() {Me.TextBox2, Me.TextBox1, Me.ListBox1})

If i could find this, i could modify it, and hopefully it will fix my
problem. Of course, I could be totally off base, and this has nothing to
do
with anything that I'm doing. Which means I will post again, LOL. If
somebody could take a peak at this KB, and see if this seems right, and
tell
me what I'm missing.

As always, TIA!

Rudy


Nov 21 '05 #3

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

Similar topics

1
by: Jeffrey A. Voigt | last post by:
I'm having trouble loading some xml data into a dataset via the ReadXML call. I'm loading into the dataset an xml schema prior to the ReadXML call. I see that there IS in fact, 3 records that...
2
by: Patrick J. Schouten | last post by:
I am trying to transfor an XML document prior to loading into a Dataset. My problem stems from the known bug in Visual Studio that prevents loading a well formed XML because of duplicate child...
0
by: Patrick Kearney | last post by:
Hi All, I have seen this type of question raised in various groups but no one has supplied a definitive answer. I am trying to load a dataset schema that has an xs:include. Project policy is to...
1
by: kids_pro | last post by:
I had come across a code block from Loading a DataSet from XML (.NET Framework Developer's Guide) ---------------------------------------- NOte If you call ReadXML to load a very large file, you...
3
by: Alpha | last post by:
Hi, I have a window C# application. I update the dataset when user finished entering in a text box. But when I want to update the database when OK is pressed, the...
0
by: oj | last post by:
I have a dataset with a parent table and 3 child tables. The dataset is filled and manipulated on one particular web page. During the user interaction one of the child tables can have records...
2
by: Bennett Haselton | last post by:
I know how to create a DataAdapter that loads data from a data source into a table in a typed DataSet, and how to set the DataSource and DataMember properties of a DataGrid so that at run time it...
4
by: Fred Nelson | last post by:
I have an applicatioin that I'm writing that uses a "case" file that contains over 350 columns and more may be added in the future. I would like to create a dataset with all the column names and...
2
by: Mad Scientist Jr | last post by:
>From an asp.net web page I want the user to open the results of a SQL query in Excel, as automatically as possible (ie not having to loop through columns, rows, in code). For this,...
0
by: Chris | last post by:
Hello, I have a problem with re-loading datasets. As a simple example, if I have an SQL table of addresses comprising active and inactive addresss, I wish to load either sub-set by clicking on...
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: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
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...
0
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...
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.