Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
See more: VB8.0 VB9.0 VB VB10.0 VB.NET
hello, the code displayed is :
 
Imports System.Xml
 
Imports System.Data
 
Public Class Form1
 
    Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
 
        Dim xmlFile As XmlReader
 
        xmlFile = XmlReader.Create("Product.xml", New XmlReaderSettings())
 
        Dim ds As New DataSet
 
        ds.ReadXml(xmlFile)
 
        DataGridView1.DataSource = ds.Tables(0)
 
    End Sub
 
End Class
 
The problem is that it is only displaying the table , how to display all data within the table??
Posted 10-Feb-13 3:35am
Edited 10-Feb-13 7:42am
CHill6067.4K
v2
Comments
Sergey Alexandrovich Kryukov at 10-Feb-13 8:40am
   
Just do some more work. You did not even try anything. Read all the file...
—SA
CHill60 at 10-Feb-13 12:41pm
   
See my reply comment to your original post of this http://www.codeproject.com/Answers/542999/HowplustoplusdisplayplusdataplusfromplusXMLplusfil?cmt=395594#cmt2_542999

1 solution

Rate this: bad
good
Please Sign up or sign in to vote.

Solution 1

You can view all the data if you bind to the dataset:
DataGridView1.DataSource = ds
  Permalink  
Comments
virajdawarka at 11-Feb-13 2:08am
   
Don't work, it does not display anything ?

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
0 OriginalGriff 350
1 Jochen Arndt 190
2 Richard MacCutchan 135
3 Sergey Alexandrovich Kryukov 120
4 DamithSL 105
0 OriginalGriff 6,045
1 DamithSL 4,611
2 Maciej Los 4,087
3 Kornfeld Eliyahu Peter 3,480
4 Sergey Alexandrovich Kryukov 3,310


Advertise | Privacy | Mobile
Web04 | 2.8.141220.1 | Last Updated 11 Feb 2013
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100