|
-
Jan 25th, 2019, 03:53 PM
#1
Re: DataTable Relation - Want to save several Datatables into one xml
With some clever manipulation you can create a relational system
Wes, don't confuse the poor lad even more. There is absolutely no manipulation adding a data relation to XML file, there is only adding the DataRelation. It is exactly the same for any connection based DBM. The biggest difference is that with XML it will write the DataRelation to the XML, thus you need not try to add it again. This is why in my example it first checks for relations prior to adding them.
I think you should first ask him/her what the application of the dataset is prior to suggesting a DBM. There are plenty of applications why a simple XML based dataset is spot-on
-
Jan 25th, 2019, 04:17 PM
#2
Re: DataTable Relation - Want to save several Datatables into one xml
 Originally Posted by kpmc
Wes, don't confuse the poor lad even more. There is absolutely no manipulation adding a data relation to XML file, there is only adding the DataRelation. It is exactly the same for any connection based DBM. The biggest difference is that with XML it will write the DataRelation to the XML, thus you need not try to add it again. This is why in my example it first checks for relations prior to adding them.
I think you should first ask him/her what the application of the dataset is prior to suggesting a DBM. There are plenty of applications why a simple XML based dataset is spot-on
Not trying to confuse the OP. Just pointing out that XML is not a database. If the OP want to learn how to develop Relational Database Management Systems then XML is the wrong tool. If the OP wants to use an Xml file, that's fine with me.
-
Jan 25th, 2019, 08:18 PM
#3
Thread Starter
Lively Member
Re: DataTable Relation - Want to save several Datatables into one xml
Not trying to confuse the OP. Just pointing out that XML is not a database. If the OP want to learn how to develop Relational Database Management Systems then XML is the wrong tool. If the OP wants to use an Xml file, that's fine with me.
NOt confused about this. I know a XML is not a DataBase.
Last edited by veronica.sa; Jan 25th, 2019 at 08:23 PM.
-
Jan 25th, 2019, 04:23 PM
#4
Thread Starter
Lively Member
Re: DataTable Relation - Want to save several Datatables into one xml
For my application saving the information in a XML is enough. Each project will have just a few data to save, no need for a DataBase.
Thanks for the video suggestion We4dbt 
kpcm, you said I could use
Code:
TextBox1.DataBindings.Add("Text", MyTableBS, "MyColumn")
to DataBind the control property to the BindingSource/DataProperty(column name). I tried and is giving an error in this line.
First I did like this,
Code:
txtName.DataBindings.Add(txtName.Text, dtProjetoBindingSource, "NameProject")
but then I wnet back here adn lookedup more about it and changed for:
Code:
txtName.DataBindings.Add("Text", dtProjetoBindingSource, "NameProject")
It is not the location, I have checked and it is supposed to save in the folder I am choosing in the running time. But the file is not generated. I desibled these lines to check, they are the problem.
Tags for this Thread
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|