Stuielooie
New Member
I want to show datatable values in my dynamic table,i looped thourough but i couldnt succeeded.dtplants is my datatable.Can you please help me with below code. \[code\] StringBuilder builder = new StringBuilder(); builder.Append("<table class=table1>"); builder.Append("<thead>"); builder.Append("<th>Configuration</th>"); builder.Append("<th>Key Figures</th>"); for (int i = 0; i < numberofplants; i++) { builder.Append("<th>"); builder.Append(Convert.ToString(dtplants.Rows)); builder.Append("</th>"); } builder.Append("<thead>"); builder.Append("<table>"); Literal1.Text = builder.ToString(); }\[/code\]