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
use this function:
public static string ConvertDataTableToHTML(DataTable dt)
{
string html = "";
//add header row
html += "";
for(int i=0;i"+dt.Columns[i].ColumnName+"";
html += " ";
//add rows
for (int i = 0; i < dt.Rows.Count; i++)
{
html += "";
for (int j = 0; j< dt.Columns.Count; j++)
html += "" + dt.Rows[i][j].ToString() + " ";
html += " ";
}
html += "
";
return html;
}