ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

This content has been translated automatically.  Click here  to view the French version.
Help / WLanguage / WLanguage properties / Various properties
  • Limits
WINDEV
WindowsLinuxJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac Catalyst
Others
Stored procedures
NumberColumn (Property)
In french: NombreColonne
The NumberColumn property is used to:
  • Get the number of columns in:
    • WINDEV a multi-column List Box control.
    • a Table or TreeView Table control.
    • a Looper control.
    • a Radio Button control.
    • a Check Box control.
    • WINDEV a Pivot Table control.
    • WINDEV a Combo Box Table control.
    • a Dashboard control.
    • WINDEV a Spreadsheet control.
  • Modify the number of columns present:
    • in a multi-column List Box control. The number of columns in a multicolumn List Box control cannot be less than 2.
    • WINDEV in a Looper control.
WINDEV Reminder To make a List Box control multicolumn (ListView control or ImageView control displayed in Classic mode):
  1. Open the control description window ("Description" in the context menu).
  2. In the "Details" tab, specify the number of columns in the "Number of columns" option.
Example
// --Traitement de modification de taille de la fenêtre
// Si la largeur de la fenêtre est modifiée :
// - la largeur du champ Liste est modifiée
LISTE_MaListe.Largeur = MyWindow.Largeur - 30
// - le nombre de colonnes présentes dans le champ Liste est modifié
// selon la nouvelle largeur de la fenêtre
LISTE_MaListe.NombreColonne = LISTE_MaListe.Largeur/50
Syntax

Getting the number of columns in a control Hide the details

<Number of columns> = <Control used>.NumberColumn
<Number of columns>: Integer
  • Number of columns found in the specified multicolumn List Box control.
  • Number of columns found in the specified Table control.
  • Number of columns found in the specified Check Box or Radio Button control.
  • WINDEV Number of columns found in the specified Pivot Table control.
  • WINDEV Number of columns found in the specified Combo Box Table control.
  • Number of cells present in the width of the specified Dashboard control.
  • WINDEV Maximum number of columns containing data (value or formula) in a Spreadsheet control.
  • Number of columns in the specified Looper control.
  • 1 if the specified element does not correspond to a control that can be processed.
<Control used>: Control name
Name of control whose number of columns is requested.
WINDEV

Changing the number of columns in a control Hide the details

<Control used>.NumberColumn = <Number of columns>
<Control used>: Control name
Name of the field to be manipulated:
  • Multi-column List Box control
  • WINDEV Looper control.
<Number of columns>: Integer
New number of columns.
For the list boxes, this number must be greater than 1 (a multi-column List Box control cannot be changed into a standard list box and conversely).
Remarks

Limits

The NumberColumn property applies only to:
  • WINDEV Multicolumn List Box controls (ListView controls displayed in standard mode).
  • Table or TreeView Table controls.
  • Radio Button controls.
  • Check Box controls.
  • WINDEV Pivot Table controls.
  • WINDEV Combo Box Table controls.
  • Dashboard controls.
  • WINDEV Spreadsheet controls.
  • WINDEV Looper controls.
Java The NumberColumn property can only be used with the following elements:
  • Check Box controls.
  • Radio Button controls.
  • Table controls.
WEBDEV - Server codeWEBDEV - Browser codePHP The NumberColumn property applies only to:
  • Check Box controls.
  • Radio Button controls.
  • Table controls.
  • TreeView Table controls.
  • Looper controls.
  • Dashboard controls.
Note: In Responsive Web Design mode, the property NumberColumn property does not override the number of columns per slice.
Minimum version required
  • Version 9
This page is also available for…
Comments
Click [Add] to post a comment

Last update: 05/10/2025

Send a report | Local help