Skip to content

Index Property

Description

The index of the GridRow within the GridControl's collection of rows.

Property Type

Read-only property

Syntax (Visual Basic)

Public Property Index() As Long

Example

GridRow Index Sample (Visual Basic)

This sample illustrates a way to use the index of a row within the GridControl's collection of GridRow objects.

Dim Record As GridRecord

' This will allow you to reference the GridRecord attached to the 2nd 
' row (index starts at zero).
Set Record = wndGridControl.Rows(1).Record

' Changes the caption of the 3rd (index starts at zero) GridRecordItem
Record.Item(2).Caption = "Re: Hello"

See Also


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