|
- Overview
- Characteristics of columns found in a Table control in a window
- Movable column
- Sortable column
- Magnifier (Filter)
- Adjustable column
- Export and print
- Fixed column, anchored column
- Fixed column
- Anchored column
- Progress Bar column
- Description
- Progress bar with a different upper bound for each row of the Table control
- Properties that can be used on a Progress Bar cell
- Memory column and Check Box column (memory Table control and browsing Table control loaded in memory)
- Memory column and Check Box column
- Style of Check Box columns
- Other characteristics of Check Box columns
Characteristics of columns found in a Table control in a window
The columns are used to display information in a Table control. The same type of information is displayed in the same column. Versions 20 and later New in version 20The following types of data can be displayed in a column: | | - Text
- Currency
- Time
- Combo Box
 Not available. - Image
- Progress Bar
Not available.
| - Numeric
- Date
- Static
- Check Box
 Not available. - Duration
Not available. - Container
(not available in Java and in WINDEV Mobile)
| Remark: To call gImage in a column, use a Text column.
Specific characteristics can be configured for each type of column. The programming of each type of column corresponds to the programming of the corresponding control. Characteristics of columns found in a Table control in a window Most characteristics of the columns found in a Table control are configured in the "General" tab of the characteristics of each column.
Movable column The user will be able to move the column in the Table control and to change the order in which the columns are displayed.
Sortable column The user will be able to sort the column via a click performed on its header. This option is available: - for all the columns found in a memory Table or Treeview Table control.
- for some columns found in the browsing Table control (only the columns based on key items and not filtered).
 and  allow you to know the sort direction of the column at any time. Programming: The sort can also be performed by programming via the following functions: | | TableSort | Used to sort the content of a Table or TreeView Table control on one or more columns | TableSortChild | Used to sort a branch of a TreeView Table control on one or more columns (lexicographical sort). |
Magnifier (Filter) The user will be able to implement a "Starts with" filter in the column. Only the elements starting with the letters typed for the column will be displayed.
The magnifier is available: - for all the columns found in a memory Table control.
- for the columns of browsing Table controls with automatic browse (only the sortable columns based on key items and not filtered).
Caution: The magnifier is not available: - for items associated with a multi-file link.
- for the Table controls that use a non-proportional scrollbar ("Proportional scrollbar" unchecked in the "Details" tab of the description window of the Table control).
Programming: This feature can be performed by programming via the following functions: | | TableSeek | Seeks a value in a column of a memory Table, browsing Table or TreeView Table. | TableSeekChild | Seeks a value in a column of a TreeView Table control, in a specified branch. |
Adjustable column The user will be able to resize the columns. Programming: The columns can be resized by programming with TableAdjust. Versions 22 and later New in version 22Fixed column, anchored column Memory column and Check Box column (memory Table control and browsing Table control loaded in memory) Versions 22 and later New in version 22
Related Examples:
|
Unit examples (WINDEV): Style for displaying the table cells
[ + ] Modifying the display style of table cells. The ..BrushStyle property is used to hatch the cells or to create a color gradient with "tube" effect.
|
|
Unit examples (WINDEV): Custom Calculations
[ + ] Using a formula entered by the user in a Table control. The formula is entered in the column and stored in a .INI file in order to be used whenever the table is displayed. The formula can be modified at any time by the user.
|
|
Unit examples (WINDEV): The Table/TreeView Table control (Progress Bar columns)
[ + ] Using a Progress Bar column as well as the ..TextProgressBar property in a Table or TreeView Table control
|
This page is also available for…
|
|
|
| |
| Table with create columns runtime |
|
| FiltraUsuarios("")
//AlteraNomeColunasQuery("TABLE_usuario","QRY_Select_All_Usuarios")
//usando a estrutura da query sColuna is string = pTableNameControl+".COL_Column" ItemList is string = HListItem( {pQueryName,indFile} , hLstDetail) CountCampos is int = StringCount(ItemList,CRLF)
//c is int // //loop (CountCampos) // c+=1 // // //TableInsertColumn /// windev // //END
ItemList = Replace(ItemList,CRLF,";") ItemList = Replace(ItemList,TAB,";") x is int = 6 y is int = 0 VARTEXT is string LOOP(CountCampos) y+= 1 VARTEXT = ExtractString(ItemList,x,";",FromBeginning) {sColuna+y,indControl}..Caption = VARTEXT {sColuna+y,indControl}..Visible = True x+= 6 END |
|
|
|
| |
| |
| |
| |
| |
| |
| | |
| |