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

Returning visible row count

Is there a property I can use to return the number of rows in a GDBG which are visible (not hidden). I know I can get this with the following code but wonder if there is a more efficient way: AddHandler model.QueryRowCount, AddressOf OnRowCountChanged Protected Sub OnRowCountChanged(ByVal sender As Object, _ ByVal e As Syncfusion.Windows.Forms.Grid.GridRowColCountEventArgs) Dim visible As Integer = 0 For i As Integer = 1 To e.Count - 1 If Grid.Model.Rows.Hidden(i) = False Then visible += 1 End If Next ''do something with the count here End Sub Thanks, Jeff

1 Reply

AD Administrator Syncfusion Team December 7, 2004 06:47 PM

The only properties are grid.TopRowIndex and grid.ViewLayout.LastVisibleRow. But these properties only take into account the rows that are actually visible on the screen. If you have 1000 rows in your grid, and 750 are marked as Hidden, then there is no property that will give you the 250 count of non-hidden rows.

Loader.
Live Chat Icon For mobile
Up arrow icon