Results 1 to 40 of 64

Thread: DataTable Relation - Want to save several Datatables into one xml

Hybrid View

  1. #1
    Fanatic Member kpmc's Avatar
    Join Date
    Sep 2017
    Posts
    1,012

    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

  2. #2
    PowerPoster
    Join Date
    Sep 2005
    Location
    Modesto, Ca.
    Posts
    5,522

    Re: DataTable Relation - Want to save several Datatables into one xml

    Quote Originally Posted by kpmc View Post
    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.

  3. #3

    Thread Starter
    Lively Member
    Join Date
    Aug 2017
    Location
    Brazil
    Posts
    87

    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.

  4. #4

    Thread Starter
    Lively Member
    Join Date
    Aug 2017
    Location
    Brazil
    Posts
    87

    Red face 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
  •  



Click Here to Expand Forum to Full Width