C# and .NET (XML and serialization)

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • neel007
    New Member
    • Feb 2010
    • 1

    C# and .NET (XML and serialization)

    Hi,

    I want to do following two steps. I am already done with first step. But I can't do the second step. Could anyone give me any idea how to do it?

    Step 1: After serialization, I load XML file's data in a datagrid in tabular format.

    Step2 : Now I want to add row in datagrid. And I want to save newly added data to same XML file.

    Thanks

    Neel
  • Bassem
    Contributor
    • Dec 2008
    • 344

    #2
    Hi,

    I think of that:
    Code:
    DataSet ds = new DataSet();
    dataGrid.DataSource = ds;
    Now try to think of that:
    Code:
    ds.WriteXml("myFile.xml")
    Thanks,
    Bassem

    Comment

    Working...