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
281
How to make column auto fit
posted

 Dear friends,

I wanted to make the column of my ultrawebgrid control to be automatically fit to the content. What property should i set or what do I need to do?

 

Thanks, 

Parents
No Data
Reply
  • 25
    Verified Answer
    posted

     This worked for me:

     In the designer, browse to ControlSettings -> UltraWebGrid -> DisplayLayout and set the following:

    ColWidthDefault: -1px

    RowWidthDefault: -1px 

    StationaryMargins: No

    UseFixedHeaders: false

    TableLayout: auto 

    This makes both columns and rows autofit to the contents. Note, that if TableLayout is not set to auto, *all* content disapears in FF if ColWidthDefault is set to -1px (seems to be an Infragistics bug - it works fine with RowWidthDefault set to -1px). Note that this will also remove scrollbars from the UltraWebGrid (browser scrollbars are still there, though) in IE and the left Infragistics scrollbar in FF.

Children
No Data