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.
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.