");
#region 构造固定列
if (staticColCount > 0)
{
table.Append("
");
for (int i = 0; i < staticColCount; i++)
{
table.Append("" + obj.Columns[i].ColumnName + " | ");
}
table.Append("
");
}
#endregion
#region 构造活动列
table.Append("
");
table.Append("
");
for (int i = staticColCount; i < obj.Columns.Count; i++)
{
table.Append("" + obj.Columns[i].ColumnName + " | ");
}
table.Append("
");
#endregion
table.Append("
");
#region 构造固定列内容
if (staticColCount > 0)
{
table.Append("
");
foreach (DataRow row in obj.Rows)
{
table.Append("");
for (int i = 0; i < staticColCount; i++)
{
table.Append("" + row[i] + " | ");
}
table.Append("
");
}
table.Append("
");
}
#endregion
#region 构造活动列内容
table.Append("
");
table.Append("
");
foreach (DataRow row in obj.Rows)
{
table.Append("");
for (int i = staticColCount; i < obj.Columns.Count; i++)
{
table.Append(""+ row[i] + " | ");
}
table.Append("
");
}
table.Append("
");
#endregion
table.Append("