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

Datatable issue

Hi all,

How do I programmatically determine if a datatable already exists in a
dataset?

Regards
John.
Jul 21 '05 #1
4 1033
DataSet.Tables.Contains ("<table name>")

"John" <a@b.com> wrote in message
news:OC**************@TK2MSFTNGP15.phx.gbl...
Hi all,

How do I programmatically determine if a datatable already exists in a
dataset?

Regards
John.

Jul 21 '05 #2
Shiva,

Just an addition, When is that name filled of course in the tablename
By instance with
da.Fill(ds, thistablename)

When the table has no name you cannot find it.

Cor
Jul 21 '05 #3
I agree Cor. I assume the developer would have given a name to the DT.

Thanks.

"Cor Ligthert" <no**********@planet.nl> wrote in message
news:OY**************@TK2MSFTNGP10.phx.gbl...
Shiva,

Just an addition, When is that name filled of course in the tablename
By instance with
da.Fill(ds, thistablename)

When the table has no name you cannot find it.

Cor

Jul 21 '05 #4
Thanks a lot...

"Shiva" <sh******@online.excite.com> wrote in message
news:ut**************@TK2MSFTNGP09.phx.gbl...
DataSet.Tables.Contains ("<table name>")

"John" <a@b.com> wrote in message
news:OC**************@TK2MSFTNGP15.phx.gbl...
Hi all,

How do I programmatically determine if a datatable already exists in a
dataset?

Regards
John.

Jul 21 '05 #5

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

Similar topics

1
by: Matthew Wieder | last post by:
I'm finding that the AddRange call in the following code takes several seconds to execute (approx. 4 seconds). DataColumn adcCols = new DataColumn; for (int i=0; i<adcCols.Length; i++) {...
7
by: GaryB | last post by:
I have an untyped datatable that has financial numbers and controls that were populated by code (not a simple fill from a DA). Now I want to insert subtotals into it. I wrote a sub to do so that...
7
by: Raymond Lewallen | last post by:
Which would be the proper way or the reason for using any of the following or combinations of the following? These are the 3 ways I've figured I can do what I want to do, I just don't know which...
4
by: hharry | last post by:
hello all, i have 2 datatables and am trying to transfer rows from datatable a to datatable b i use the datatable.importrow method. the importrow method fails (but does not throw an...
5
by: Frank Hauptlorenz | last post by:
Hello, I recognized some days ago, that returning a DataTable blocks my WCF-Service. Is this a known bug? If I add this table to a new DataSet() and return this, it works. Thank you, Frank
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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:
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
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...
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
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,...

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.