It was quite simple in MVC but you feel complex in C#. Because you have to write seperate code for sorting, paging and itemCommand.
For simple table binding, First assign literal/ label
<asp:literal id="ltlTable" runat="server" xmlns:asp="#unknown" />
string strVal= "<table>";
for(int i=0;i<datatable.columns.count;i++)>
{
strVal+="<tr>";
for(int j=0;j&<datatable.rows.count;j++)>
{
strVal+="<td>";
strVal+= dataTable.Rows[i][j].toString();
strVal+="</td>";
}
strVal+="</tr>";
}
strVal+="</table>";
ltlTable.Value = strVal.toString();