PC SOFT

FOROS PROFESIONALES
WINDEVWEBDEV y WINDEV Mobile

Inicio → WINDEV 2024 → [WD20] - How to change Column Titles?
[WD20] - How to change Column Titles?
Iniciado por guest, 05,feb. 2018 08:53 - 4 respuestas
Publicado el 05,febrero 2018 - 08:53
Hello,

The subject says it all. I want to change the title of Columns for a table control at run-time.

How to do this in WD20?

TIA
Miembro registrado
102 mensajes
Publicado el 05,febrero 2018 - 12:18
COL_whatever..Title = "New Title"

--
http://arnoldconsult.de
WinDev 21 with Oracle, WinDevMobile Android Apps and Motorola Windows CE Mobile Barcode Scanners, Python 3 with Oracle and MySQL
Publicado el 05,febrero 2018 - 12:33
..Title
Publicado el 05,febrero 2018 - 13:42
Hi Yogi Yang,

I use MyTable.MyColumn..Caption.
Publicado el 05,febrero 2018 - 15:43
Fabrice and Stefan,

Thanks for the tip. Actually as the columns were to be read from Db and dynamically at run time based on what the user has selected from a combo I was finding it hard to get the captions changed.

But I have finally managed it using this simple code with indirection (which was a life saver).
sColName = "COL_AgeGap" + nColCnt {sColName}..Title = sMonthName nColCnt = nColCnt + 1 I had to name the columns as COL_AgeGap1, COL_AgeGap2, etc. at design time!

Regards,