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.
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

How to get count of visible rows?

Thread ID:

Created:

Updated:

Platform:

Replies:

13324 Apr 26,2004 05:07 PM UTC Apr 26,2004 08:53 PM UTC Windows Forms 1
loading
Tags: GridControl
Don
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.

CONFIRMATION

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.

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

;