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 11:47 PM UTC

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.
Up arrow icon