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
405
Ultragrid column autosize
posted

Hello

How do you set the properties of an ultragrid column so that this column will automatically fit the remaining grid width ?

Thanks

Parents
No Data
Reply
  • 20872
    Verified Answer
    Offline posted

    Hello ,

    If you want to resize the last column of the UltraGrid to fit the available space you can use the following code :

    ultraGrid1.DisplayLayout.AutoFitStyle = AutoFitStyle.ExtendLastColumn;

    If you want ot size any other column what you could try is to setting the following property:

    ultraGrid1.DisplayLayout.AutoFitStyle = AutoFitStyle.ResizeAllColumns;

    After that what you should do is to fix the width of all columns but one by setting MinWidth, Width and MaxWidth to the same value on each column. So there will be only one sizeable column left.

    Hope this helps.

    Sincerely,

    Danko Valkov

    Developer Support Engineer

    Infragistics, Inc.

     

     

Children
No Data