D
Darin
I can get an XML loaded into a datagrid using:
Dim ds As New DataSet
ds.ReadXml("jp.xml")
gData.DataSource = ds
But, this a grid that allows clicking on the plus to see styles,
alignment, etc.
I want to load it in a datagrid so it appears in rows and columns just
like if I were to load a CSV file using:
Dim tmpConnection As New
System.Data.OleDb.OleDbConnection(DDIConnectString("test.csv"))
tmpConnection.Open()
strsql = "SELECT * FROM test.csv"
Dim da As New System.Data.OleDb.OleDbDataAdapter(strsql, tmpConnection)
Dim ds As New DataSet("Workbook")
Dim dt As DataTable
Dim drRow As DataRow
da.Fill(ds, "Sheet1")
dt = ds.Tables("Sheet1")
gData.DataSource = dt
tmpConnection.Close()
Thanks.
Darin
Dim ds As New DataSet
ds.ReadXml("jp.xml")
gData.DataSource = ds
But, this a grid that allows clicking on the plus to see styles,
alignment, etc.
I want to load it in a datagrid so it appears in rows and columns just
like if I were to load a CSV file using:
Dim tmpConnection As New
System.Data.OleDb.OleDbConnection(DDIConnectString("test.csv"))
tmpConnection.Open()
strsql = "SELECT * FROM test.csv"
Dim da As New System.Data.OleDb.OleDbDataAdapter(strsql, tmpConnection)
Dim ds As New DataSet("Workbook")
Dim dt As DataTable
Dim drRow As DataRow
da.Fill(ds, "Sheet1")
dt = ds.Tables("Sheet1")
gData.DataSource = dt
tmpConnection.Close()
Thanks.
Darin