V
VB Programmer
How do I loop through every column in every datarow in a datatable?
Here's the code I'm trying...
(dt = datatable)
For Each dr As DataRow In dt.Rows
For Each dc As DataColumn In dt.Columns
strTempRow += dc.ToString & ","
Next
Next
dc.ToString doesn't give me the VALUE of the column. Any ideas?
Here's the code I'm trying...
(dt = datatable)
For Each dr As DataRow In dt.Rows
For Each dc As DataColumn In dt.Columns
strTempRow += dc.ToString & ","
Next
Next
dc.ToString doesn't give me the VALUE of the column. Any ideas?