Page 1 of 1

Hiding Columns in List View at run time VLWEB

Posted: Thu Jun 29, 2017 3:23 pm
by soa
I have the following line of code

#lstStudents.Columns<2>.ColumnVisible := false

This appears to hide the column that is second in the list of column fields by alphabetic order by name not in the displayed sequence.

I can work out which number to put in there but is there a way to achieve by column name so that if I add further columns I don't have to recalculate this value?

Re: Hiding Columns in List View at run time VLWEB

Posted: Thu Jun 29, 2017 3:39 pm
by soa
OK, Forget it. I found

#ColumnXXXXX.ColumnVisible := false