Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
myDGV.Rows.Count和有区别myDGV.RowCount吗?
myDGV.Rows.Count
myDGV.RowCount
此外,这两个似乎都返回基础表中的行数 + 1,例如,它们为单个字段表返回 4,如下所示。标题是否添加到计数中?:
myField x y z
RowCount:获取或设置 DataGridView 中显示的行数。
Rows.Count:返回行数