Hi
Here I'm posting some sample code for that check it once
string tablestring="";
tablestring=tablestring+"<table width="100%"><tr><td>First Column Heading</td><td>Second column Heading</td><td>Third column Heading</td></tr>";
foreach(datarow dr in dt.rows)
{
tablestring=tablestring+"<tr><td>"+dr[0].tostring()+"</td><td>"+dr[1].tostring()+"</td><td>"+dr[2].tostring()+"</td></tr>";
}
tablestring=tablestring+"</table>";
divTable.innerHTML=tablestring;
I hope you understood what I did.
All the Best