PC SOFT

FOROS PROFESIONALES
WINDEVWEBDEV y WINDEV Mobile

Inicio → WINDEV 2024 → [WB20] Disable or hide checkbox on a line in TreeTable ?
[WB20] Disable or hide checkbox on a line in TreeTable ?
Iniciado por guest, 08,ene. 2016 11:40 - 3 respuestas
Publicado el 08,enero 2016 - 11:40
Hello,

I have a treetablecontrol on a page that displays some data. It is filled programmatically.
The master lines of the tree the controls in some columns should be hidden or grayed because those options only apply to the sublines.

I have tried to use this code in the Row Display of the table, but it does not compile !

HTABLE_Lines[nRow].gpclPresenter_clLines_List_m_bDetailsFirst..Visible = False
Also tried State, but I get the error that Visible and State properties are readonly !!

How can I disable a certain cell (row/col) in a treetable in WebDev ?

This could also happen when you select a certain value from a combobox in the treetable, that would disable the other cells not applicable anymore, here you also have to enable or disable the cells of the table via code ?

Thanks
Danny
Publicado el 08,enero 2016 - 13:18
Hi Danny,

You could add some attributes for the visible property of the controls and set them when adding the lines.

Regards,
Piet
Publicado el 08,enero 2016 - 13:39
Hi Danny,

Sorry, I was in Looper mode.
It is an option however to change/refactor the table into a looper.
Or use tablebreaks instead of treeview if you don't have many levels.

Regards,
Piet
Miembro registrado
71 mensajes
Publicado el 14,junio 2016 - 19:50
Hello Danny,

did you solve that somehow? I have a similar problem now :-)

Thank you

P.