开发者

Using an XML file as my Winforms .NET 2.0 datasource

开发者 https://www.devze.com 2022-12-14 17:26 出处:网络
Is it possible to point to an xml file as a datasource in the same way you would with an .mdf file? Please let me know if I can clarify this question.

Is it possible to point to an xml file as a datasource in the same way you would with an .mdf file? Please let me know if I can clarify this question.

For example, let's say I have a datagrid and I want to connect a datasource to it and I want that datasour开发者_如何学编程ce to be based on a local filesystem xml file.


You can try using the DataSet.ReadXml method.

The ReadXml method provides a way to read either data only, or both data and schema into a DataSet from an XML document.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号