private static void StyleTableCell(TableCell cell) { if (cell == null) return; foreach (var control in cell.Controls.OfType<WebControl>()) { StyleControl(control); } }