VB.NET - Get all row data from data table

Published: 05 July 2014
on channel: KnowledgeIsCool
13,948
15

Here is the code you can use to retrieve all row data from a data table.

http://knowledgeiscool.wordpress.com/...

VB.NET - Get all row data from data table

Dim rowData As String = ""

'dt is the name of the data table
For Each row As DataRow In dt.Rows
For Each column As DataColumn In dt.Columns
rowData = rowData & column.ColumnName & "=" & row(column) & " "
Next
rowData = rowData & vbNewLine & vbNewLine
Next

MessageBox.Show(rowData)


On this page of the site you can watch the video online VB.NET - Get all row data from data table with a duration of hours minute second in good quality, which was uploaded by the user KnowledgeIsCool 05 July 2014, share the link with friends and acquaintances, this video has already been watched 13,948 times on youtube and it was liked by 15 viewers. Enjoy your viewing!