Table tb=new Table();
while (dr.Read())
{
TableRow tr = new TableRow();
TableCell tc1 = new TableCell();
TableCell tc2 = new TableCell();
TableCell tc3 = new TableCell();
tc1.Text = dr["userName"].ToString();
tc2.Text = dr["email"].ToString();
tc3.Text = dr["CompanyName"].ToString();
tr.Cells.Add(tc1);
tr.Cells.Add(tc2);
tr.Cells.Add(tc3);
tb.Rows.Add(tr);
}