string dynTable = ""; dynTable = "<table ID=\"tablechange\" cellspacing=\"0\" cellpadding=\"2\" border-collapse: collapse\">"; for (int TableRows = 0; TableRows < finalrow; TableRows++) { dynTable += "<tr>"; for (int TableColumns = 0; TableColumns < 5; TableColumns++) { if (x <= count) break; dynTable += "<td style=\"color: Black; width: 100px; border-color: #000000; border-style: solid none solid solid;\">"; dynTable += Display[count, 0]; dynTable += "</td>"; dynTable += "<td style=\"color: Black; width: 35px; border-style: solid solid solid none; border-color: #000000;\" title=" + Display[count, 2] + " bgcolor=" + Display[count, 1] + ">"; dynTable += ""; dynTable += "</td>"; dynTable += "<td style=\"width: 2px\">"; dynTable += "</td>"; count++; } dynTable += "</tr>"; dynTable += "<tr>"; dynTable += "<td style=\"height: 2px;\"></td>"; dynTable += "</tr>"; } dynTable += "</table>"; Literal1.Text = dynTable;
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)