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
821
"AutoSize" Columns
posted

Hello Dear

My very basic problem is that i want to do a "autosize" of all the gridcolumns. Maybe autosize is wrong so please let me explain;

Just imagine a grid where a cell value in Column A has a wide string value or content. In column B there aren't such wide strings in the cells. Is it possible to tell the grid that it shall take a column width so all cell content can be displayed? I don't know how the Grid builds it size but in HTML manner this is not a big deal i think?

I found some articles in the knowledge base to set this via javascript, but I just wanted to know if this is possible without doing it on the client via javascript.

If there is absolutly no way to let the grid do this, please let me also know.

Thanks for your help

 

Parents
  • 3732
    Verified Answer
    posted

    Hi,

    Thanks for subitting you query with Infragistics Forums.

    There is a property in UltraWebGrid's DisplayLayout named "TableLayout", which needs to be set to Auto for the columns to resize themselves. By default this property is set to Fixed.

    Hope this helps.

    Thanks

Reply Children