DataSet DiffGram Question

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • John Lee

    #1

    DataSet DiffGram Question

    Hi,

    When I use DataSet.WriteXm l(filename, XmlWriteMode.Di ffGram), the xml file
    contains current values (at <InvDataSet> node) and original value (at
    <diffgr:befor e> node) - this means the original values are stored somewhere
    in DataSet, Can someone tell me how can I access those original values from
    code?

    Thanks very much!

    John


  • Jeffrey Tan[MSFT]

    #2
    RE: DataSet DiffGram Question


    Hi John,

    You can use AcceptChanges method to update the dataset and then
    invoke the dataset's GetChanges method to get a new dataset that consist
    by the modified values.
    You can get the original value from the old dataset wipe off the modified
    values

    Hope this helps.

    Best regards,
    Jeffrey Tan
    Microsoft Online Partner Support
    Get Secure! - www.microsoft.com/security
    This posting is provided "as is" with no warranties and confers no rights.

    --------------------
    | Reply-To: "John Lee" <john@pursca.co m>
    | From: "John Lee" <john-nospam@pursca.c om>
    | Subject: DataSet DiffGram Question
    | Date: Tue, 9 Sep 2003 13:28:21 -0700
    | Lines: 13
    | X-Priority: 3
    | X-MSMail-Priority: Normal
    | X-Newsreader: Microsoft Outlook Express 6.00.3790.0
    | X-MIMEOLE: Produced By Microsoft MimeOLE V6.00.3790.0
    | Message-ID: <#yGiqDxdDHA.18 84@TK2MSFTNGP10 .phx.gbl>
    | Newsgroups: microsoft.publi c.dotnet.langua ges.csharp
    | NNTP-Posting-Host: h-69-3-177-60.lsanca54.cov ad.net 69.3.177.60
    | Path: cpmsftngxa06.ph x.gbl!TK2MSFTNG P08.phx.gbl!TK2 MSFTNGP10.phx.g bl
    | Xref: cpmsftngxa06.ph x.gbl microsoft.publi c.dotnet.langua ges.csharp:1835 69
    | X-Tomcat-NG: microsoft.publi c.dotnet.langua ges.csharp
    |
    | Hi,
    |
    | When I use DataSet.WriteXm l(filename, XmlWriteMode.Di ffGram), the xml file
    | contains current values (at <InvDataSet> node) and original value (at
    | <diffgr:befor e> node) - this means the original values are stored
    somewhere
    | in DataSet, Can someone tell me how can I access those original values
    from
    | code?
    |
    | Thanks very much!
    |
    | John
    |
    |
    |

    Comment

    Working...