Library Vcl NextSuite 6 NextGrid6 Reference Classes TNxColumns6 ItemBy

ItemBy

Gets column reference by name or location.

pas
property ItemBy[Index: Variant]: TNxColumn6 read GetItemBy;

Example

pas
NameCol = NextGrid61.Columns.ItemBy['colFirstName']; // Name property is colFirstName

FirstCol = NextGrid61.Columns.ItemBy['first']; // Equal to Item[0]

SortedCol = NextGrid61.Columns.ItemBy['sorted']; // Equal to SortedColumn

Remarks

If Index is specified as number, Item property is called internally.

Files

Sign in