By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
446,285 Members | 1,647 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 446,285 IT Pros & Developers. It's quick & easy.

DataGridView row count based on content

P: 116

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?

Jan 11 '14 #1
Share this question for a faster answer!
Share on Google+

Post your reply

Sign in to post your reply or Sign up for a free account.