CGrid:SetTH_Title


The SetTH_Title method sets the title for a top heading cell. If there is more than one top heading row, the specific top heading row must also be specified. The default (first) top heading row is in top heading row 1. Going upward from the grid, the second top heading is in row 2, and so on.

Note: The top heading row numbering differs with the CGridView class. Moving upward from the grid, the CGrid top headings are numbered 1, 2, 3, ..., whereas the CGridView top headings are numbered 0, -1, -2, ...

Syntax

CGrid:SetTH_Title( nCol, sTitle )

CGrid:SetTH_Title( nCol, sTitle, nHdgRow )

bullet.gif    nCol is the top heading column number to set.

bullet.gif    sTitle is the title to set.

bullet.gif    nHdgRow is the optional top heading row to set if there is more than one top heading row. The default top heading is in top heading row 1

Example

The following script sets the title for default top heading column 2 to "<X>":

G = new_grid()

-- create a new CGrid object

-- assemble the grid

 

G:SetTH_Title( 2, "<X>" )

-- set the title for top heading column 2 to "<X>"

Related Topics

CGrid class, SetTH_Titles, SetSH_Title


Mira Pro x64 Script User's Guide, Copyright Ⓒ 2024 Mirametrics, Inc. All Rights Reserved.