IncludeLabelsInGridCells property: GridColumn class

Description

This property returns the current setting of the grid column, that is, whether the labels are displayed on grid columns as specified by the Include Labels in Grid Cells option on the Fluid tab of the Grid Properties page. You can use this property either to display the labels in the grid column or not to display the labels based on the user's accessibility setting. You can set it to True (to display the labels) or False (not to display the labels).

This property is read/write.

Example

In the following example, the code will toggle the IncludeLabelsInGridCells property to On if it’s Off or to Off if it’s On.

&Grid6 = GetGrid(Page.QE_PAGE_2, "QE_WORK_REC6");
&PayComp = &Grid6.GetColumn("QE_PAY_COMP_CD");

If &PayComp.IncludeLabelsInGridCells Then
   &PayComp.IncludeLabelsInGridCells = False;
Else
   &PayComp.IncludeLabelsInGridCells = True;
End-If;