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
255
Dynamically set the column width
posted

Hi,

 

I have grid with two bands, I want to set the column width for each column based on the length of each column during run time.  Is there any way I can do it for both the bands.

 

Regards

Sudarsan C.R

Parents
  • 53790
    Verified Answer
    posted

    Hello Sudarsan,

    There are different approaches to solve this task. One possible solution could be if you are using :

    this.ultraGrid1.DisplayLayout.Override.AllowColSizing = Infragistics.Win.UltraWinGrid.AllowColSizing.Free;

    this.ultraGrid1.DisplayLayout.PerformAutoResizeColumns(true, Infragistics.Win.UltraWinGrid.PerformAutoSizeType.AllRowsInBand, true);

    Let me know if you have any questions.

    Regards

Reply Children