2012-07-17 56 views

回答

7

可以使用Cells.Count属性。如果它大于7,则意味着存在Cells[7](因为索引是从零开始的)。

if (e.Item.Cells.Count > 7 && e.Item.Cells[7].Text == "something")