I have the following problem.
Using a UltraCombo, I am able to display an Image and some text.
In the InitializeRow I use this
e.Row.Cells(KEY_CodeDescription).Value = String.Format("{0} {1}", C.Code, C.Description) & Space(1) & vbCrLf & String.Format("{0}", f.Nom)
To populate the dropdown list. I get 2 lines which is what I want.
I also do this in the InitializeRow.. at the end...e.Row.Height = 50
In the initializeLayout i have added
e.Layout.Bands(0).Override.RowSizing = RowSizing.AutoFreee.Layout.Bands(0).Override.RowSizingArea = RowSizingArea.EntireRowe.Layout.AutoFitStyle = AutoFitStyle.ResizeAllColumns
e.Layout.Override.ColumnAutoSizeMode = ColumnAutoSizeMode.VisibleRows
e.Layout.Override.CellMultiLine = DefaultableBoolean.Truee.Layout.Bands(0).Columns(KEY_CodeDescription).CellMultiLine = DefaultableBoolean.True
However the display area shows everything in the same line.
Any ideas ?
Hi Fred,
I don't see any way around this. UltraCombo has no MultiLine property.
Even if it did, this would probably not be a good idea. Multiline text and auto-complete won't work well together due to some quirky behavior in the MS TextBox control, which the Combo uses when it goes into edit mode.
I recommend that you Submit a feature request to Infragistics and perhaps we can add Multiline functionality to the UltraCombo in the future.
So just to make we are talking about the same thing...
Its normal to have mulltiline in the drop down and not in the edit portion ?
Yes, basically UltraCombo does not have any support for multi-line text in the edit portion of the control.