Hiding an Instance List Column
Posted: Tue Nov 10, 2020 9:15 am
I have an instance list where I only need to see 2 columns (only 1 is a visual ID). In the uInitialize section of the Filter, I put the following logic:
(The columns aren't changing width either).
Any help would be much appreciated. Thank you.
Code: Select all
If (#AVLISTMANAGER.avVisualList *IsNot *NULL)
For Each(#Column) In(#AVLISTMANAGER.avVisualList.Columns)
If (#Column.ColumnCaption = 'Name')
#Column.CellMarginRight := 15
#Column.CellWidth := 1000
Else
If (#column.ColumnCaption = 'Customer Account')
#Column.CellWidth := 50
Else
If (#column.ColumnCaption = 'Company')
#column.Visible := False
Endif
Endif
Endif
Endfor
Endif(The columns aren't changing width either).
Any help would be much appreciated. Thank you.