Take html table control on .aspx page and write below code on .cs page.
DataTable DT = new DataTable();
HtmlTableRow TR;
HtmlTableCell TD;
if (DT.Rows.Count>0)
{
TR = new HtmlTableRow();
TR.Attributes.Add("class", "tblHeading");
TD = new HtmlTableCell();
TD.InnerHtml = " Branch Code";
TD.Align = "Left";
TD.Style[HtmlTextWriterStyle.FontSize] = "11px";
TR.Cells.Add(TD);
tblRpt.Rows.Add(TR);
TD = new HtmlTableCell();
TD.InnerHtml = " Branch Name";
TD.Align = "Left";
TD.Style[HtmlTextWriterStyle.FontSize] = "11px";
TR.Cells.Add(TD);
tblRpt.Rows.Add(TR);
TD = new HtmlTableCell();
TD.InnerHtml = " Branch Address";
TD.Align = "Left";
TD.Style[HtmlTextWriterStyle.FontSize] = "11px";
TR.Cells.Add(TD);
tblRpt.Rows.Add(TR);
TD = new HtmlTableCell();
TD.InnerHtml = " Branch City";
TD.Align = "Left";
TD.Style[HtmlTextWriterStyle.FontSize] = "11px";
TR.Cells.Add(TD);
tblRpt.Rows.Add(TR);
TD = new HtmlTableCell();
TD.InnerHtml = " Branch State";
TD.Align = "Left";
TD.Style[HtmlTextWriterStyle.FontSize] = "11px";
TR.Cells.Add(TD);
tblRpt.Rows.Add(TR);
}