DataGridView row count based on content

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • robertybob
    New Member
    • Feb 2013
    • 116

    DataGridView row count based on content

    Hi

    I have a DGV with, say, 100 rows. Some of the rows are set to 20px high and some to 50px high.

    I would like to count how many rows are set to 20px high irrespective of whether the row is visible.

    Is there any clever way to do this instantly rather than iterating through the entire DGV checking each row and adding it to a count? (ie, a for/next loop through DGV)

    I found a way to count rows based on certain aspects via the getRowCount - is it possible to insert a query into this to find what I need?

    Thanks
Working...