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
415
How to set the width of a column of style = ColumnStyle.DropDownList
posted

I would like to set the width of the column to be constant like so:

Me.DisplayLayout.Bands(0).Columns("ColumnName").Style = ColumnStyle.DropDownList

Me.DisplayLayout.Bands(0).Columns("ColumnName").Width = 250

However, the column width always adjusts according to the selected value of the DropDownList.  Is there a trick to overwrite this behavior?

Thanks for any help.

 

Parents
No Data
Reply
  • 469350
    Verified Answer
    Offline posted

    shsieh said:
    However, the column width always adjusts according to the selected value of the DropDownList.  Is there a trick to overwrite this behavior?

    This is not the default behavior of the grid. So something in your code must be resizing the column when you select something from the dropdown. You should check your code for calls to the "PerformAutoResize" method on the column.

Children
No Data