PC SOFT

FOROS PROFESIONALES
WINDEVWEBDEV y WINDEV Mobile

Inicio → WINDEV 2024 → [WD19] Table Control - hide column functionality/control
[WD19] Table Control - hide column functionality/control
Iniciado por Andrew, 20,feb. 2015 21:30 - 4 respuestas
Miembro registrado
31 mensajes
Publicado el 20,febrero 2015 - 21:30
Hi, all!

I'm looking for a solution here...

So I have this table control - great - it's showing a result set of records which are "system" records that the User cannot edit, "user" records which the User CAN edit, and also "header" records which are used to group the System and User records. All of these records inside of the table control. Very nice.

Now, the System and User records have a Checkbox column "Is Active" which lets us turn on/off the state of a record in the application. For these Header records, the higher-ups do NOT want the Checkbox to be shown/drawn. Any way to accomplish this?
Miembro registrado
18 mensajes
Publicado el 20,febrero 2015 - 23:51
Should be as easy as going to the description for the table and changing the visible property on the checkbox column.

Or you can do it programmatically based on specific criteria. In example, COL_Checkbox..visible = False.
Miembro registrado
31 mensajes
Publicado el 21,febrero 2015 - 00:05
Not quite -- I still want the column itself to show, just not the checkbox control of the column on a particular row ;)
Publicado el 21,febrero 2015 - 16:16
Hi Andrew

instead of suing a checkbox, you can use a graphical combo containing 3
lines:
unchecked checkbox
checked checkbox
empty (or X)

For the lines where the checkbox should not be visible, you display the
3rd line

And of course, you can manage by code (onclick, by example), the
possible change in status

I am assuming here that the table itself is managed by programming, of
course

Best regards

--
Fabrice Harari
International WinDev, WebDev and WinDev mobile Consulting

NEW: WXReplication, your open source replication system is available on
my web site!!!
WXShowroom.com: Show your projects!
More information on http://www.fabriceharari.com


On 2/20/2015 6:05 PM, Andrew wrote:
Not quite -- I still want the column itself to show, just not the
checkbox control of the column on a particular row ;)
Miembro registrado
31 mensajes
Publicado el 23,febrero 2015 - 16:36
Ah, very nice! Thank you!