B
BobAchgill
Why do I get this syntax error for the code below:
SYNTAX ERROR MESSAGE:
'myTableinDS' is not a member of 'System.Data.Dataset'
I know the data set is good because when it is read in it
shows up in my datagrid. Now I just want to march
through the table row by row column by column
programmatically doing things with the table data.
But I don't seem to be able to create the variable
MyTableRows() As DataRow to get this process started.
Many thanks!
Bob
+++++++++++++++++++++++++++
CODE:
Dim myDS As DataSet = New DataSet
myDS.ReadXml("MyData_data.xml")
Dim MyTableRows() As DataRow = myDS.myTableinDS()
Dim myCol As DataColumn
Dim myRow As DataRow
If (MyTableRows.Length < 1) Then
'Console.WriteLine("No Rows Found")
Else
For Each myRow In MyTableRows
For Each myCol In myDS.myTableinDS.Columns
'Console.Write(vbTab & myRow
(myCol).ToString())
Next
Next
End If
SYNTAX ERROR MESSAGE:
'myTableinDS' is not a member of 'System.Data.Dataset'
I know the data set is good because when it is read in it
shows up in my datagrid. Now I just want to march
through the table row by row column by column
programmatically doing things with the table data.
But I don't seem to be able to create the variable
MyTableRows() As DataRow to get this process started.
Many thanks!
Bob
+++++++++++++++++++++++++++
CODE:
Dim myDS As DataSet = New DataSet
myDS.ReadXml("MyData_data.xml")
Dim MyTableRows() As DataRow = myDS.myTableinDS()
Dim myCol As DataColumn
Dim myRow As DataRow
If (MyTableRows.Length < 1) Then
'Console.WriteLine("No Rows Found")
Else
For Each myRow In MyTableRows
For Each myCol In myDS.myTableinDS.Columns
'Console.Write(vbTab & myRow
(myCol).ToString())
Next
Next
End If