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
170
Autosize a valuelist column in wingrid
posted

Hi,

I'm using the following code in the wingrid initializeLayout event to autosize the columns:

        gridASD.DisplayLayout.Override.AllowColSizing = AllowColSizing.Free

        gridASD.DisplayLayout.PerformAutoResizeColumns(True, Infragistics.Win.UltraWinGrid.PerformAutoSizeType.VisibleRows, True)

This works fine apart from those columns which have a valuelist. These columns resize to fit either the column header or the value (whichever's largest) rather than the text description of the value set in the valuelist. Is there a simple way around this?
Thanks.