Column.Width question.

Hi all,

Using a grid dynamically, adding columns depending on number of datafields from a query, I'm setting the column width at runtime. However, I can't use the function canvas.textwidth(text) as there is no canvas available.

Do any of you reading this, know of a similar function available or any other way of getting the width in Pixels of any given text ?

Regards
Soren

Hi,


I'm not sure if there is an equivalent to canvas.textwidth available in IntraWeb because it can be problematic to reliably predict the width of a text in a browser. The width can be influenced by CSS/JavaScript/browser settings ...

As an alternative you can try to set the Column.WidthType to wtNone.