ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Help / Developing an application or website / Controls, windows and pages / Controls: Available types / Table control
  • Overview
  • Resize columns
  • Tip
  • Change the order of columns
  • Tip
  • Fix the columns
  • Performing a search in the columns
  • Tip
  • Display the column content on several lines
  • Copy the column
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
Overview
The Table controls displayed in a window allow the end user to perform several operations. Some features are automatic features while some features require to perform simple modifications in the application.
This help page presents the Automatic Application Features (AAF) available for columns in Table controls:
Remark: These Automatic Application Features (AAF) are also available for the TreeView Table controls.
Resize columns
The user can easily resize the columns found in a Table control.
To resize the columns found in a Table control:
  1. Hover the column separator.
  2. When the cursor tuns into a double arrow, keep the left mouse button down.
  3. Move the column separator in order to get the required dimension.
Example:
The first column is too small to to see the entire name of companies.
The first column is too small to
to see the entire name of companies.
The first column was enlarged.
The first column was enlarged.

Tip

To automatically adjust the size of the column to the longest text found in this column, all you have to do is double-click the column separator (on the right of the title of the column to adjust).
Remark: In order for the automatic adjustment to be available, check "Adjustable" in the "General" tab of the column description.
Change the order of columns
The end user can easily reorganize the columns found in a Table control. To do so, the following operations must be performed:
  1. Click the title of the column to move, and keep the left mouse button down.
  2. Move the column to its new position and release the left mouse button.
Example:

Tip

To implement this feature, "Moveable" must be checked in the "General" tab of the column description.
Fix the columns
You have the ability to fix a column in order to view the content: the column is fixed on the border of the Table control and the horizontal scrollbar is used to access (if necessary) the other columns of the Table control.
To fix a column:
  1. Hover the left part of column title.
  2. When the mouse cursor turns into an opened padlock, click with the left mouse button. All the columns found on the left of this column will be fixed. These columns cannot be moved anymore.
The same operation can be done to unfix the columns.
Example:
The Company column is fixed.
The Company column is fixed.
Tip: To implement this feature, "Adjustable" must be checked in the "General" tab of the column description.
Performing a search in the columns
To perform a search in a Table control, you must:
  1. Click the magnifier found in the column title. An input area is displayed.
  2. Enter the first letters of the searched item. The first corresponding element is automatically selected in the Table control.
Remarks:
  • To implement this feature, "With search (Magnifier)" must be checked in the "General" tab of the description window of the column.
  • You also have the ability to filter the elements displayed in a Table control. For more details, see Filter in the columns of a Table control.

Tip

You also have the ability to perform a search by typing the first letters sought. You must:
  1. Sort the column where the search must be performed (the magnifier must be displayed in this column).
  2. Enter the first letters of the searched item. The first corresponding element is automatically selected in the table.
Display the column content on several lines
In some case, the table columns are not wide enough to display the entire information. The column must be enlarged. But in some cases, the column becomes as wide as the table itself!
To avoid these operations, use the popup menu of the column:
  1. Right-click the column title. A popup menu is displayed. This popup menu affects to the current column.
  2. Select "Display over several lines".
  3. The column content is automatically displayed on several lines.
Remarks:
  • The content of the table column must contain space characters in order to be displayed on several lines.
  • To display all the text columns as multiline columns, check "Multiline text columns" in the "Details" tab of the description window of Table control.
  • Like all the popup menus proposed by the AAFs, you have the ability to configure the options proposed by default by the Table control. For more details, see Configuring the AAF menus.
  • Through programming:
    • AAFDisable associated with the aafDisplayOnSeveralLines constant deletes the menu option.
    • the Property Multiline used on a column allows to know if the column is displayed in multiline mode or not.
Copy the column
To copy the data found in a column of a Table control:
  1. Right-click the column title. A popup menu is displayed. This popup menu affects to the current column.
  2. Select "Copy the column".
  3. The column content is automatically copied into the clipboard and it can be pasted in any application.
Remark: Like all the popup menus proposed by the AAFs, you have the ability to configure the options proposed by default by the Table control. For more details, see Configuring the AAF menus.
Minimum version required
  • Version 14
This page is also available for…
Comments
Click [Add] to post a comment

Last update: 10/04/2022

Send a report | Local help