Click here to Skip to main content
12,547,922 members (43,586 online)
Rate this:
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
        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 2:35am
Updated 10-Feb-13 6:42am
Just do some more work. You did not even try anything. Read all the file...
CHill60 10-Feb-13 12:41pm
See my reply comment to your original post of this

1 solution

Rate this: bad
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
virajdawarka 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
Top Experts
Last 24hrsThis month

Advertise | Privacy | Mobile
Web01 | 2.8.161021.1 | Last Updated 11 Feb 2013
Copyright © CodeProject, 1999-2016
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