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
580
UltraCombo Dropdownwidth
posted

Hi All,

Again, I apoligize if this is a stupid question as we are new to Infragistics controls.

I have a combo box that is loaded with a datatable.  The datatable has 2 columns.  I have set the dropdownwidth = -1.  The columns do not appear to auto size based on the size of the data (they actually appear to be the exact same width).

In the documentation for the ultracombo I found this: "The default value is -1. This means that the dropdown will automatically size based on the widths of the columns it contains. It will limit itself to the size of the screen."

We are using Infragistics wincontrols version 9.2, VS 2010 and framework 3.5

What am I missing?

Thanks!

Parents
No Data
Reply
  • 469350
    Verified Answer
    Offline posted

    Right. The width of the dropdown is based on the widths of the columns. But setting DropDownWidth to -1 doesn't change the widths of the columns.

    AgilysysMD said:
    What am I missing?

    If you want to set the widths of the columns to the widths of the data, you do this the same way you would in the grid - call the PerformAutoResize method on the column(s) or the PerformAutoResizeColumns method on the band or DisplayLayout to size them all at once. 

     

Children