TableRow CreateRow (Control c0, Style s0, HorizontalAlign align) { TableRow row = new TableRow (); TableCell cell0 = new TableCell (); cell0.Controls.Add (c0); cell0.HorizontalAlign = align; if (s0 != null) cell0.ApplyStyle (s0); row.Controls.Add (cell0); return row; }