Skip to content

Row Property

Description

Returns the GridRow at the given X and Y coordinates.

Property Type

Read-only property

Syntax (Visual Basic)

Public Property Row() As [GridRow](XtremeGridControl~GridRow.md)

Example

HitTest Row Sample (Visual Basic)

This sample illustrates how to return a reference to a GridRow at a given X and Y coordinate.

Private Sub wndGridControl_MouseDown(Button As Integer, Shift As Integer, X As Long, Y As Long)  
    Dim hitRow As GridRow  

    ' Returns a reference to the row clicked  
    ' Determines which row the mouse was positioned over on mousedown.  
    Set hitRow = wndGridControl.HitTest(X, Y).Row  

    If Not hitRow Is Nothing Then  
        If hitRow.GroupRow Then  
            Debug.Print "MouseDown on GroupRow"  
        Else  
            Debug.Print "MouseDown on Row # " & hitRow.Index  
        End If  
    End If  
End Sub

See Also


Copyright (c) 1998-2024 Codejock Technologies. All rights reserved.