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

How to get count of visible rows?

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.

1 Reply

AD Administrator Syncfusion Team 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.

Live Chat Icon For mobile
Up arrow icon