发布网友 发布时间:2022-04-23 00:32
共2个回答
热心网友 时间:2022-04-22 21:40
string str ="<table>";
DataTable ds = new DataTable();
for (int i = 0; i < ds.Rows.Count; i++)
{
str+="<tr>";
for (int j = 0; j < ds.Columns.Count; j++)
{
str+="<td>"+ds.Rows[i][j]+"</td>";
}
str += "</tr>";
}
str += "</table>";
热心网友 时间:2022-04-22 22:58
string str ="<table>";
DataTable ds = new DataTable();
for (int i = 0; i < ds.Rows.Count; i++)
{
str+="<tr>";
for (int j = 0; j < ds.Columns.Count; j++)
{
str+="<td>"+ds.Rows[i][j]+"</td>";
}
str += "</tr>";
}
str += "</table>";