HTMLTable tbl;
HTMLTableRow Tr;
HtmlTableCell Tc;
Tc.innerText="Hello World";
Tc.bgColor="lightGreen";
Tc.Style.Add("font-names","Verdana");
Tc.Attributes.Add("title","Tooltip Hi");
Tr.Cells.Add(Tc)
tbl.Rows.Add(Tr);
You Can Fill Dataset and in For loop You can customize table rows and display it like this
you just have to write
Tc.innerText=ds.tables[0].Rows[i]["SrNo"];
it's Too much easy to customize and Print The Html Reports