获取gridview的行数

int j = GridView1.Rows.Count;

原文地址:https://www.cnblogs.com/muhaidong/p/3276884.html