Skip to content

Tag Property

See Also

GridRecord Collection

See Also


Description

Used to hold any extra data that might be useful.

Property Type

Read-write property.

Syntax (Visual Basic)

Public Property Tag() As Variant

Remarks

This is the same as any other Tag property; you can store just about any type of data in this property. You can use this value to identify the Rows.

Example

This sample illustrates how you could use the Tag property.

Dim Record As GridRecord

' Adds a record/row to the GridControl
Set Record = wndGridControl.Records.Add

' You can place any useful data to your program in the Tag property
' You can use this value to identify your Rows
Record.Tag = 1

' Add the record/row to the GridControl
wndGridControl.Populate

' If the Tag value is 1, then hide the row
For Each Record in wndGridControl.Records
    If Record.Tag = 1 Then
        Records.Visible = False
    End If
Next

See Also

GridRecord Collection


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