How to set individual Column Widths of WebListBox programatically

Hello all,

In Web1, in code I would read certain column widths then adjust accordingly. Is there a way to do this in Web 2?

Thanks,
Tim

Is there a bug in WebListBox.ColumnWidths? It’s supposed to read/write a comma delimited string of column widths.

Individual ColumnWidth is not available in Web 2, could you please add a Feature Request for this?

You can achieve it using a combination of ColumnWidths, String.Split and String.FromArray.

1 Like

Ricardo, you beat me to it.

I sub-classed my WebListbox and added a property with a Variant array.
When the values of this array change, it constructs a string, almost the same way as you describe. This string is set in the ColumnWidths property of the WebListbox.

The advantage of using Variants is that it supports a mix or the * symbol, as well as integers.

1 Like

Will do Ricardo,

But I question why this functionality (and other functionality) that was in Web1, is not in web 2???

Hopefully I did this correct, it is labeled as number 69042.
#69042

Thanks,
Tim

1 Like