I have question, that maybe someone here wouldn\'t mind to help me with. I have lets say 3 datatables, each one of them has the following columns:
size, quantity, amo
Just in case anyone arrives here and was hoping for VB (I did, and I didn't enter c# as a search term), here's the basics of the first response..
Public Shared Function ConvertDataTableToHTML(dt As DataTable) As String
Dim html As String = ""
html += ""
For i As Integer = 0 To dt.Columns.Count - 1
html += "" + System.Web.HttpUtility.HtmlEncode(dt.Columns(i).ColumnName) + " "
Next
html += " "
For i As Integer = 0 To dt.Rows.Count - 1
html += ""
For j As Integer = 0 To dt.Columns.Count - 1
html += "" + System.Web.HttpUtility.HtmlEncode(dt.Rows(i)(j).ToString()) + " "
Next
html += " "
Next
html += "
"
Return html
End Function