2015-06-03 30 views

回答

1

如果 “最后一排” 是指页脚:

GridViewRow footer = grid.FooterRow; 

否则:

GridViewRow lastRow = grid.Rows.Cast<GridViewRow>().Last(); 

现在,您可以循环lastRow.Cells或使用lastRow.DataItem,如果它是数据绑定最近。

相关问题