PC SOFT

WINDEV的在线文档

  • Overview of the Table control
  • How to proceed?
  • Creating a Table control
  • Characteristics of a Table control
  • Tips
  • Vocabulary
  • Swapping
  • Table/Looper control
  • TreeView Table/Table control
  • Limits
文档页面当前正在翻译。对于此延迟我们深表歉意。
您可以自愿地帮助我们翻译您想要的文档段落,然后只需通过以下地址与我们联系:info@cn.windev.com
产品
WinDevWebDev-服务器代码WebDev-浏览器代码WinDev Mobile报表和查询
平台
WindowsLinuxWindows MobileWindows PhoneWindows Store appsAndroidAndroid Widget iPhone/iPad
语言
JavaPHPAjax用户代码(MCU)外部语言
数据库
HFSQLHFSQL Client/Server存储过程HF 5.5OLE DBODBC本地访问

Overview of the Table control
The Table control is used to simplify the display and the input of information stored in memory or coming from a data file, a view or a query.

A Table control is contains rows and columns. The intersection between a row and a column defines a cell.

A Table control can be managed row by row, column by column or cell by cell. A Table control can be displayed horizontally or vertically.

The information displayed in a Table control can:

  • be defined by programming: we talk of Memory Table control.
  • come from a variable: we talk of Table on source control.
  • come from a data file or from a query: we talk of Browsing Table control. Two types of browsing Table controls are available:
    • The browsing Table controls with direct access: the browsing Table control directly handles the records found in the query or in the data file.
    • The browsing Table controls loaded in memory: the browsing Table control handles the file records loaded in memory (optimized browsing Table control).
See the comparison between the features of Table controls for more details.

Notes:

  • WinDev The Table controls can be multi-selection.
16版本和更高版本
WinDevLinux The Table control is now available in Linux for WinDev.
16新版本
WinDevLinux The Table control is now available in Linux for WinDev.
WinDevLinux The Table control is now available in Linux for WinDev.

How to proceed?

Creating a Table control

To create a Table control:
  1. In the window editor or in the page editor, click(or select "Insert .. Control .. Table").On the "创建" pane, in the "数据" group:
    • WinDev expand "Table and list box" and select "Table (Vertical)".
    • WinDev expand "Table" and select "Table (Vertical)".
  2. Click the position where the control must be created in the window or in the page. The wizard for creating a Table control is automatically started.
  3. Answer the questions and validate the control creation.
20版本和更高版本
WinDev Note: The dimensions of the created control are optimized in order to occupy the available space at the specified position. If the size of the control does not suit your, press [CTRL Z]: the default size of the control will be restored.
20新版本
WinDev Note: The dimensions of the created control are optimized in order to occupy the available space at the specified position. If the size of the control does not suit your, press [CTRL Z]: the default size of the control will be restored.
WinDev Note: The dimensions of the created control are optimized in order to occupy the available space at the specified position. If the size of the control does not suit your, press [CTRL Z]: the default size of the control will be restored.

To display the characteristics of the control, select "Description" from the popup menu of the control. Two types of information can be viewed:
  • the information regarding the entire Table control (all you have to do is select the name of the control).
  • the information regarding each of the columns (all you have to do is select the name of a column).
Notes:
  • To easily create a browsing Table control from a data file described in the data model editor, all you have to do is Drag and Drop the selected data file into the "Project explorer" pane or into the "Analysis" pane.
  • To easily create a Table control on source from array variables found in the current window or in the current page, all you have to do is Drag and Drop the selected variable into the "Project explorer" pane.

Characteristics of a Table control

In the characteristics of a Table control, you have the ability to specify:For more details, see:

Tips

  • WinDev To add new columns in a Table control, use the popup menu of the control in the window editor. The "Add a column..." option allows you to add into the selected control a new column of the requested type after the existing columns.
  • The height of the rows in your table is too small in the editor? Simply use the mouse to increase the height of the table's rows. This tip is very useful for the multi-line columns and for the container columns.
15版本和更高版本
  • You have the ability to quickly duplicate a column. To do so:
    1. Open the description window of the Table control.
    2. Select the column to duplicate.
    3. Click the "Duplicate" button.
15新版本
  • You have the ability to quickly duplicate a column. To do so:
    1. Open the description window of the Table control.
    2. Select the column to duplicate.
    3. Click the "Duplicate" button.
  • You have the ability to quickly duplicate a column. To do so:
    1. Open the description window of the Table control.
    2. Select the column to duplicate.
    3. Click the "Duplicate" button.

Note: The height specified for the first row of the Table control is applied to all the other rows of the control.

Vocabulary
To easily handle a Table control, you must be familiar with the following vocabulary:
NameDefinition
Selection barUsed to view the selected element. A specific color is used in most cases.
Browsing Table controlThe Table control is based on a data file or on a query. The elements of the control correspond to the records of the data file.
Memory Table controlThe Table control is not based on a data file or on a query. The elements displayed in the control are defined by the developer (by programming).
Single-selection Table controlThe user can select a single element in the Table control.
Multi-selection Table controlThe user can select several elements at the same time in the Table control (with the CTRL key).
Table on source controlThe Table control is based on a WLanguage variable. The elements displayed in the control correspond to the data found in the variable.

Swapping

Table/Looper control

A Table control can be automatically changed into a Looper control:
  1. Select the Table control to transform.
  2. Select the "Control .. Swap .. Table to Looper" option.On the "修改" pane, in the "转换" group, expand "重构和切换" and select "Table to Looper".

WinDev

TreeView Table/Table control

WinDev and WinDev Mobile enable you to automatically transform a Table control into a Treeview Table (and conversely):
  1. Select the Table control (or the TreeView Table control) to handle.
  2. Select "Control .. Swap .. Table/Treeview Table".On the "修改" pane, in the "转换" group, expand "重构和切换" and select "Table/TreeView Table".

Limits