ALTERNATIVE OF GRID VIEW
HtmlTable tb = new HtmlTable();
tb.Border = 2;
for (int i = 0; i < 20; i++)
{
HtmlTableCell tc = new HtmlTableCell();
tc.VAlign = "top";
tc.InnerText = "abc"+i.ToString();
tc.BgColor = "#C0B88C";
HtmlTableCell tc1 = new HtmlTableCell();
tc1.VAlign = "top";
tc1.InnerText = "def" + i.ToString();
tc1.BgColor = "#949633";
HtmlTableRow tr = new HtmlTableRow();
tr.Cells.Add(tc);
tr.Cells.Add(tc1);
tb.Rows.Add(tr);
}
this.form1.Controls.Add(tb);
--
Regards,
Munish Kalra
http://kalraonaspnet.blogspot.com
http://munishmca.co.nr
No comments:
Post a Comment