Hi
I have a grid and I want to know in advance how wide to make the columns according to the text inside and a given font.
How can I calculate the width of a text in a given font (includes font name and sizeInPoints) , so that I will know how wide the columns must be .
Thanks.
Use the PerformAutoResize method on the column.
Hi Mike
Thanks but I might not have explained my need properly. I wanted a fixed column width calculated in advance.
Anyway Matt gave me a satisfactory answer which works well