Count Property
Description
Returns the number of currently selected rows.
Property Type
Read-only property.
Syntax (Visual Basic)
Public Property Count() As Long
Remarks
Call this method to retrieve the number of rows in the collection of selected rows.
Example
How to Determine the Current Number of Selected Rows (Visual Basic)
This sample illustrates how to determine the current number of rows selected in the GridControl.
Dim rowsSelected As Long
' This will return the number of currently selected rows in the GridControl
rowsSelected = wndGridControl.SelectedRows.Count
Debug.Print "You currently have selected " & rowsSelected & " rows in the GridControl."
See Also
- GridSelectedRows Collection
- GridControl SelectedRows Property
- GridControl MultipleSelection Property
Copyright (c) 1998-2024 Codejock Technologies. All rights reserved.