datatable分栏显示问题
for (int i = StartRow; i < EndRow; i++)
{
DataRow row = tabRY.Rows[i];
string Examination_No = row[ "Examination_No "].ToString();
string Name = row[ "Name "].ToString();
writer.Write( " <tr> ");
for (int d = 1; d < 5; d++)
{
writer.Write( " <td> "+ Examination_No + " <br> " + Name + " <br> " + Seats_No + " </div> </td> ");
}
writer.Write( " </tr> ");
}
假设有30条记录,如何才可以获得4列不同的值?
------解决方案--------------------up