The Syncfusion native Blazor components library offers 70+ UI and Data Viz web controls that are responsive and lightweight for building modern web apps.
.NET PDF framework is a high-performance and comprehensive library used to create, read, merge, split, secure, edit, view, and review PDF files in C#/VB.NET.
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
ADAdministrator 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.