PC SOFT

FORUMS PROFESSIONNELS
WINDEVWEBDEV et WINDEV Mobile

Accueil → WINDEV 2024 → WD17: Add Checkbox column in Table Control
WD17: Add Checkbox column in Table Control
Débuté par Raymond Thomas, 03 juin 2013 15:52 - 5 réponses
Posté le 03 juin 2013 - 15:52
I use the following command to fill a table from a query programmatically:

BuildBrowsingTable(myTABLE, myQuery, taFillTable)

I would like to add a checkbox column to this table (first column) so that the user can select one or more rows. The selected rows will then be used for some other processes.

Is this possible, if so please point me in the right direction.

Many thanks
Ray
Posté le 03 juin 2013 - 16:19
OK I have found under the Style option of the table control that you can choose to display the "Row Selector" element. It seems to be just a button control which is fine for my purposes.
Posté le 03 juin 2013 - 17:10
Hi

You can select a check box to be displayed in every row. In the 7 tab select the column. In the colum you can specify if it is tekst or date etc , checkbox is one of them. 1 is checked 0 isnot checked
Posté le 28 août 2019 - 16:03
if you want to create a new colum as checkbox type, you can use this

col1 is Control <- ControlCreate("TABLE_Cliente.COL1", typCheckBox)
{"TABLE_Cliente.COL1"}..Caption = "Example"
Membre enregistré
19 messages
Posté le 14 septembre 2019 - 17:59
Allard's solution is the easiest within the WINDEV environment. From there, use a button/buttons where the CODE of the button will contain instructions as to what should happen with a checked box (again 1 being value checked, 0 value not checked

--
Vincent D Crosby
Posté le 17 septembre 2019 - 14:05
have you read "PROGRAMMATICALLY" ?