Hi,
I have a DataSet, which contains several DataTables. I want to put a new
DataTable in it (tblFileSetting s) just before I write this DataSet to an
XML-file.
But what I want is that this new DataTable tblFileSettings is the first
DataTable in the XML-file. So If uses open the XML file, they see this
DataTable (which contains some info about the file).
Does anybody knows how to do this? The problem is that I can't insert this
DataTable before I insert all the others, because of the fact that the data
in my tblFileSettings depends on the other DataTables...
Any help would be really appreciated!!
Tanksa lot,
Pieter 5 1226
Hi,
I dont see anyway to control where a datatable is added to a
dataset. Maybe you could create a 2nd dataset and add the tables to it in
the order you want.
Ken
-----------------
"DraguVaso" <pi**********@h otmail.com> wrote in message
news:eq******** *****@TK2MSFTNG P15.phx.gbl...
Hi,
I have a DataSet, which contains several DataTables. I want to put a new
DataTable in it (tblFileSetting s) just before I write this DataSet to an
XML-file.
But what I want is that this new DataTable tblFileSettings is the first
DataTable in the XML-file. So If uses open the XML file, they see this
DataTable (which contains some info about the file).
Does anybody knows how to do this? The problem is that I can't insert this
DataTable before I insert all the others, because of the fact that the data
in my tblFileSettings depends on the other DataTables...
Any help would be really appreciated!!
Tanksa lot,
Pieter
Or write dataset's xml to a stream and modify it "manually".
--
Miha Markic [MVP C#] - RightHand .NET consulting & development www.rthand.com
Blog: http://cs.rthand.com/blogs/blog_with_righthand/
SLODUG - Slovene Developer Users Group www.codezone-si.info
"Ken Tucker [MVP]" <vb***@bellsout h.net> wrote in message
news:%2******** ********@TK2MSF TNGP15.phx.gbl. .. Hi,
I dont see anyway to control where a datatable is added to a dataset. Maybe you could create a 2nd dataset and add the tables to it in the order you want.
Ken ----------------- "DraguVaso" <pi**********@h otmail.com> wrote in message news:eq******** *****@TK2MSFTNG P15.phx.gbl... Hi,
I have a DataSet, which contains several DataTables. I want to put a new DataTable in it (tblFileSetting s) just before I write this DataSet to an XML-file.
But what I want is that this new DataTable tblFileSettings is the first DataTable in the XML-file. So If uses open the XML file, they see this DataTable (which contains some info about the file).
Does anybody knows how to do this? The problem is that I can't insert this DataTable before I insert all the others, because of the fact that the data in my tblFileSettings depends on the other DataTables...
Any help would be really appreciated!!
Tanksa lot,
Pieter
How about creating a new DataSet and assembling it in the order in which you
wish the data to appear?
--
_______________ _______________ ______
William (Bill) Vaughn
Author, Mentor, Consultant
Microsoft MVP www.betav.com/blog/billva www.betav.com
Please reply only to the newsgroup so that others can benefit.
This posting is provided "AS IS" with no warranties, and confers no rights.
_______________ _______________ ____
"DraguVaso" <pi**********@h otmail.com> wrote in message
news:eq******** *****@TK2MSFTNG P15.phx.gbl... Hi,
I have a DataSet, which contains several DataTables. I want to put a new DataTable in it (tblFileSetting s) just before I write this DataSet to an XML-file.
But what I want is that this new DataTable tblFileSettings is the first DataTable in the XML-file. So If uses open the XML file, they see this DataTable (which contains some info about the file).
Does anybody knows how to do this? The problem is that I can't insert this DataTable before I insert all the others, because of the fact that the data in my tblFileSettings depends on the other DataTables...
Any help would be really appreciated!!
Tanksa lot,
Pieter
What about exporting each table to xml individually? You can set up the xml
the way that you like it too :)
"DraguVaso" wrote: Hi,
I have a DataSet, which contains several DataTables. I want to put a new DataTable in it (tblFileSetting s) just before I write this DataSet to an XML-file.
But what I want is that this new DataTable tblFileSettings is the first DataTable in the XML-file. So If uses open the XML file, they see this DataTable (which contains some info about the file).
Does anybody knows how to do this? The problem is that I can't insert this DataTable before I insert all the others, because of the fact that the data in my tblFileSettings depends on the other DataTables...
Any help would be really appreciated!!
Tanksa lot,
Pieter
ok, thanks for the answers! :-)
"DraguVaso" <pi**********@h otmail.com> wrote in message
news:eq******** *****@TK2MSFTNG P15.phx.gbl... Hi,
I have a DataSet, which contains several DataTables. I want to put a new DataTable in it (tblFileSetting s) just before I write this DataSet to an XML-file.
But what I want is that this new DataTable tblFileSettings is the first DataTable in the XML-file. So If uses open the XML file, they see this DataTable (which contains some info about the file).
Does anybody knows how to do this? The problem is that I can't insert this DataTable before I insert all the others, because of the fact that the
data in my tblFileSettings depends on the other DataTables...
Any help would be really appreciated!!
Tanksa lot,
Pieter
This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: Carl Lindmark |
last post by:
Hello,
I am having trouble understanding how to navigate a DataSet table... - maybe
someone can steer me in the right direction?
Say you've read an XML document into a DataSet ("myDataSet") and then filled
a DataTable by doing: myDataSet.Tables;
and the XML looks this way:
....
<situation>
|
by: Chris Ericoli |
last post by:
Hi,
I am working with an 'in session' ado dataset with an asp.net application.
My dataset is comprised of two tables, one of which maintains a few
calculated datacolumns. For some reason these datacolumns do not trigger
their expression when other columns from which the expressions are derived
are updated. Below is a basic example of what I am doing.
User enters values into an asp.net form and clicks a button.
Retrieve dataset from...
|
by: Jon |
last post by:
I'm learning about datatables. When using the example provided by MS in the
..NET Framework Class Library for DATATABLE (see below) I get an error on line
3 that says "Type expected". Is something missing from the code?
Thanks - Jon
Private Sub MakeParentTable()
' Create a new DataTable.
Dim myDataTable As Datatable = New Datatable("ParentTable")
|
by: DraguVaso |
last post by:
Hi,
I have a DataSet, which contains several DataTables. I want to put a new
DataTable in it (tblFileSettings) just before I write this DataSet to an
XML-file.
But what I want is that this new DataTable tblFileSettings is the first
DataTable in the XML-file. So If uses open the XML file, they see this
DataTable (which contains some info about the file).
|
by: stockblaster |
last post by:
Hello all..
Is it possible to convert a DataTable (i create the DataTable from a
CSV file) into binary data and save it into an sql 2005 table (into
binary field).
After that I want to have the ability to add a row to the beginning of
the to the binary data..
| |
by: dauphian |
last post by:
Hello,
I am new to .net and am trying to build a report application that
queries 4 different tables based on a id, and I need to return them in
the same table for easy viewing.
Basically, I have one querie that grabs all of the id's I need for the
other 4 queries, but I am not sure how to get them into a DataTable or
DataSet, or if that is the best way to do this. Seperately the queries
all work with no problems.
|
by: Anil Gupte |
last post by:
After reading a tutorial and fiddling, I finally got this to work. I can
now put two tables created with a DataTable class into a DataRelation.
Phew! And it works!
Dim tblSliceInfo As New DataTable("SliceInfo")
Dim tblSliceRatings As New DataTable("SliceRatings")
'.... All the adding datacolumns, datarows, etc. goes here..
DatasetInit.Tables.Add(tblSliceInfo)
|
by: =?Utf-8?B?SnVsaWEgQg==?= |
last post by:
Hi, I wonder if anyone can help?
I've got a web form (intranet), .net version 1.1. I've got a sub that
populates a datatable in a dataset, dependent on a dropdown field selection.
This works great, but if the user selects another item from the dropdown
field and the sub runs again, the original data is overwritten. How do I
store the original data and add the new datarow without overwriting the
original? Here's my code:
Protected...
|
by: =?Utf-8?B?cm9uZSBtYXRpYXM=?= |
last post by:
I have the same task to do but everytime I tried to parse my code I get a
null value returned after executing "dtMaterials.WriteXml(swMaterials);". I
am using the following code: Hope you can hep me out with this.
Thanks.
DataTable dtMaterials = new DataTable();
StringWriter swMaterials = new StringWriter();
swMaterials = null;
string strMaterials = string.Empty;
|
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...
|
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,...
| |
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...
|
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...
|
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 instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
|
by: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert into image.
Globals.ThisAddIn.Application.ActiveDocument.Select();...
|
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...
|
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
| |