Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
105
Automatic width for columns
posted

OK, I'm having a heck of a time trying to find the magic incantations to make columns automatically size to their content.

Suppose I have three columns: "Size", "Mean" and "Sample Standard Deviation".  I would like the Size and Mean columns to squeeze down to some minimum width, say 75 WPF pixels.  But I would like the third column to expand to show the full text of the label.

"Autofit"only seems to make all columns the same width, which is not what I want.

As a bonus, I would also like to have each column automatically size to its data, so that if I entered "9999999999" in the size column, then the whole column would automatically grow larger to accommodate the new number. 

Thanks,

Denny Huber