CGrid:SetSH_HorzAlign CGrid:SetSH_Titles

CGrid:SetSH_Title


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

Note: The side heading column numbering differs with the CGridView class. Going leftward from the grid, the CGrid side headings are numbered 1, 2, 3, ..., whereas the CGridView side headings are numbered 0, -1, -2, ...

Syntax

CGrid:SetSH_Title( nRow, sTitle )

CGrid:SetSH_Title( nRow, sTitle, nSideCol )

bullet.gif    nRow is the side heading row number to set.

bullet.gif    sTitle is the title to set.

bullet.gif    nSideCol is the optional side column to set if there is more than one side heading column. The default side heading is in side heading column 1

Example

The following script sets the title for default side heading row 2 to "Image 2":

G = new_grid()

-- create a new CGrid object

-- assemble the grid

 

G:SetSH_Title( 2, "Image 2" )

-- set the title for row 2 to "Image 2"

Related Topics

CGrid class, SetSH_Titles, SetTH_Title


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