this.dataGridView1.Rows.GetRowCount();

            this.dataGridView1.Rows.GetRowCount();
            this.dataGridView1.Rows.GetPreviousRow;
            this.dataGridView1.Rows.GetLastRow;

                        这三方法  怎么用  
                        int a=  this.dataGridView1.Rows.GetRowCount();??
                        无法获得

如果问题得到解决,请及时采纳,谢谢。

 this.dataGridView1.Rows.Count()