VBcoders Guest



Don't have an account yet? Register
 


Forgot Password?



Load a DataGrid Contol with XML Data using ADO.NET

by Piyush Gupta (3 Submissions)
Category: Databases/Data Access/DAO/ADO
Compatability: VB 6.0
Difficulty: Unknown Difficulty
Originally Published: Mon 15th October 2001
Date Added: Mon 8th February 2021
Rating: (1 Votes)

Load a DataGrid Contol with XML Data using ADO.NET

Rate Load a DataGrid Contol with XML Data using ADO.NET



.ADO

Protected Sub btnImportXML_Click(ByVal sender As Object, ByVal e As System.EventArgs)
        Dim objXMLDataSet As New DataSet("XMLDataSet")
        Dim objXMLDOM As New System.Xml.XmlDocument()
        
        objxmldom.Load(txtPath.Text)
        
        objXMLDataSet.ReadXml(txtPath.Text)
        
        DataGrid.DataSource = objXMLDataSet
End Sub

Download this snippet    Add to My Saved Code

Load a DataGrid Contol with XML Data using ADO.NET Comments

No comments have been posted about Load a DataGrid Contol with XML Data using ADO.NET. Why not be the first to post a comment about Load a DataGrid Contol with XML Data using ADO.NET.

Post your comment

Subject:
Message:
0/1000 characters