⑤象xml格式文件一样读写一个dataset的内容。
利用diffgrams从dataset中读写内容,下面的例子显示在提交更改之前更新表中一行数据的结果,其中customerid为alfki的那一行数据被修改但是还没有更新:
<diffgr:diffgram xmlns:msdata="urn:schemas-microsoft-com:xml-msdata" xmlns:diffgr="urn:schemas-microsoft-com:xml-diffgram-v1">
<customerdataset>
<customers diffgr:id="customers1" msdata:roworder="0" diffgr:haschanges="modified">
<customerid>alfki</customerid>
<companyname>new company</companyname>
</customers>
<customers diffgr:id="customers2" msdata:roworder="1" diffgram:haserrors="true">
<customerid>anatr</customerid>
<companyname>ana trujillo emparedados y helados</companyname>
</customers>
<customers diffgr:id="customers3" msdata:roworder="2">
<customerid>anton</customerid>
<companyname>antonio moreno taquería</companyname>
</customers>
<customers diffgr:id="customers4" msdata:roworder="3">