P
Pete Smith
What is the syntax to read the data from a DataTable by row # and (column #
or name)?
..Net Framework 1.1 and VB.Net.
I have the below code from documentation
For Each thisTable In myDataSet.Tables
' For each row, print the values of each column.
Dim myRow As DataRow
For Each myRow In thisTable.Rows
Dim myCol As DataColumn
For Each myCol In thisTable.Columns
Console.WriteLine(myRow(myCol))
Next myCol
Next myRow
Next thisTable
But I wanted read the datatable data by referencing as above specified.
Thank you,
-Pete
or name)?
..Net Framework 1.1 and VB.Net.
I have the below code from documentation
For Each thisTable In myDataSet.Tables
' For each row, print the values of each column.
Dim myRow As DataRow
For Each myRow In thisTable.Rows
Dim myCol As DataColumn
For Each myCol In thisTable.Columns
Console.WriteLine(myRow(myCol))
Next myCol
Next myRow
Next thisTable
But I wanted read the datatable data by referencing as above specified.
Thank you,
-Pete