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
155
How to fit columns to content unless header text is wider
posted

I have used the PerformAutoResize method with the VisibleRows option but when I do this sometimes my header text is larger than my content and therefore my header text becomes multilined. I would like to be able to resize columns so that they fit the content, however, if the header is wider than the content then it should size to the header. Is there a way to go about doing this? Could I perform auto resize and set some other property to disable multi-line headers?