行数:GridView1.Rows.Count; 列数:GridView1.Columns.Count; 转载于:https://www.cnblogs.com/zhuiyi/archive/2011/05/18/2050217.html