代码如下
foreach (Table t in _textControl.Tables)
{
if (t.ID == 1300)
{
int totalrow = t.Rows.Count;
int totalcol = t.Columns.Count;
for (int i = 2; i <= totalrow; i++)
{
string value = t.Cells.GetItem(i, 1).Text;
value = t.Cells.GetItem(i, 2).Text;
value = t.Cells.GetItem(i, 3).Text;
value = t.Cells.GetItem(i, 4).Text;
}
}
}
在获取第三行数据的时候就报错