We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

How to get count of visible rows?

Thread ID:





13324 Apr 26,2004 05:07 PM UTC Apr 26,2004 08:53 PM UTC WinForms 1
Tags: GridControl
Asked On April 26, 2004 05:07 PM UTC

I have a grid where I've set a number of rows to be invisible using the SetRowHidden() method of the grid. Is it possible to get a count of the number of rows that are now not invisible? I thought I found the answer with Grid.ViewLayout.VisibleRows, but that just returns the number of rows visible on the screen at that time; I need a count of rows that have not been set to be invisible, whether or not they are visible in the grid window at that time.

Administrator [Syncfusion]
Replied On April 26, 2004 08:53 PM UTC

If you are explicitly calling SetRowsHidden to hide the rows, then you can track the number of hidden rows in your code though a class member. Then since you know the hidden row count, you can then get the non-hidden rowcout using grid.Model.RowCount and you hidden row count.


This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

Live Chat Icon For mobile
Live Chat Icon