ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Help / WLanguage / WLanguage functions / Controls, pages and windows / Table functions
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac CatalystUniversal Windows 10 App
Others
Stored procedures
Adds a column title-header into a Table or TreeView Table control in a window.
Title-header in a Table control
Remark: You can also add a column title-header from the Table or TreeView Table control description window ("Details", tab, "Edit column title-headers").
Example
// Adds a title-header above the columns 2, 3 and 4
TABLE_Number.AddTitleHeader(2, 4, "Forecast")
// Adds a title-header above the columns 5, 6 and 7
TABLE_Number.AddTitleHeader(5, 7, "Performed")
 
// Adds a title-header above the menu columns
TABLE_Menu.AddTitleHeader(COL_Starter, COL_Dessert, "Menu")
Syntax

Adding a title-header on columns identified by their index Hide the details

<Table control>.AddTitleHeader(<Index of first column> , <Index of last column> , <Caption>)
<Table control>: Control name
Name of the control to be used. This control can correspond to:
  • a Table control.
  • a TreeView Table control.
<Index of first column>: Integer
Index of the column above which the title-header will start.
<Index of last column>: Integer
Index of the column above which the title-header will end. The index of this column must be greater than <Index of first column>.
<Caption>: Character string
Caption that must be displayed in the title-header.

Adding a title-header on columns identified by their name Hide the details

<Table control>.AddTitleHeader(<First column> , <Last column> , <Caption>)
<Table control>: Control name
Name of the control to be used. This control can correspond to:
  • a Table control.
  • a TreeView Table control.
<First column>: Control name
Name of the column above which the title-header must start.
<Last column>: Control name
Name of column above which the title-header must end.
<Caption>: Character string
Caption that must be displayed in the title-header.
Remarks
  • Through programming, a single title-header level can be added. To add several levels, you must use the description window of the Table or TreeView Table control ("Details" tab, "Edit column title-headers").
  • The TitleHeader property allows you to:
    • Know and modify the title and the aspect of a column title header in a Table control.
    • Get the number of title headers of a column in a Table control.
Component: wd290obj.dll
Minimum version required
  • Version 23
This page is also available for…
Comments
Click [Add] to post a comment

Last update: 06/20/2023

Send a report | Local help