Skip to content

Replies

0
Paul Scannell
Paul Scannell answered on Jul 11, 2016 2:31 PM

Mike,

I'm working with customizing the ultra combo box for the first time.  My application's DLL has a wrapper function set that deals with the underlying Infragistics controls.

What I need to do is set the dropdown portion of the control to have a total width of 800.  Column 0 = 10 (doesn't matter because it is hidden) and Column 1 = 790.

The problem I am having is determining how the code should look to set the width.  I've tried this but it doesn't do a thing:

With cmbLookupAward
   .DataSource = Nothing
   .DataSource = setGridData ( SQLStatement )   ' setComboBoxData

   .DisplayLayout.UseFixedHeaders            = False
   '.DisplayLayout.Bands(0).ColHeadersVisible = False
   '.DisplayLayout.Bands(0).Columns(0).Hidden = True

   .DisplayLayout.Bands(0).Columns(0).Width = 10
   .DisplayLayout.Bands(0).Columns(1).Width = 800
End With

So I'm guessing there is a global drowdown width property or something like that that I'm missing?

Could you provide the actual code to do it?  For example, What object level contains the DropDownWidth property?

Thanks,

Paul