相当于什么
for (int rowCounter = 0; rowCounter < rowCount; rowCounter++)
{
for (int columnCounter = 0;columnCounter < columnCount; columnCounter++)
{
string strValue = GridView1.Rows[rowCounter].Cells[columnCounter].Text;
grdTable.AddCell(strValue);
}
}
Run Code Online (Sandbox Code Playgroud)
在VB.net?
For rowCounter As Integer = 0 To rowCount - 1
For columnCounter As Integer = 0 To columnCount - 1
Dim strValue As String = GridView1.Rows(rowCounter).Cells(columnCounter).Text
grdTable.AddCell(strValue)
Next
Next
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
4234 次 |
| 最近记录: |