• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 3527
  • Last Modified:

Visible Row Count in DataGridView

Does anyone know how to get the number of rows visible in a datagridview? Not the total number of rows, but rather the number of rows that are visible in the current control.

The old DataGrid object has a property for it, but the dgv seems to have dropped that. Anyone know of a work-around?

1 Solution
Bob LearnedCommented:
Look at the DataGridView.DisplayedRowCount property.  There is also the DisplayColumnCount property, and the FirstDisplayedScrollingRowIndex property.


Featured Post

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now