During the constructor of the editor that as the ultragrid, I want to create the dropdown lists for each column that needs it. Currently I've assigned a comboEditor to each column and I configure those at run time, but would be nice if I can just configure the column directly and use the native drop down behavior of the grid without having to use additional controls.
Im not sure if this is what you refering to,, but here is some code i use to show the dropdown in my cells
Private WithEvents FundApprultraDropDown As New Infragistics.Win.UltraWinGrid.UltraCombo
Private WithEvents POBCNumberultraDropDown As New Infragistics.Win.UltraWinGrid.UltraCombo
Try
e.Layout.Bands(0).Columns("PurchaseTypeDescription").ValueList = TypePOultraDropDown
e.Layout.Bands(0).Columns("PurchaseNumber").ValueList = POBCNumberultraDropDown
Catch ex As Exception
End Try
End Sub
My editor is part of a wizard, in which previous choices change the value of the drop down list.
In the constructor I basically have:
ultraComboEditorScales.Items.Clear();ultraComboEditorScales.Items.Add("", "none"); if (!ConformanceUtil.EmptyList(scales)) { foreach (Scale scale in scales) { ultraComboEditorScales.Items.Add(scale.ID, scale.ID); } }
ultraComboEditorScales.Items.Clear();
if (!ConformanceUtil.EmptyList(scales)) {
ultraComboEditorScales.Items.Add(scale.ID, scale.ID);
}
On the deisgner I have the grid usign dock.Fill, plus 1 ultraComboEditor place on top of the grid and set to invisible. Then thru the custom designer for the grid, I set the control editor to ultraComboEditorScales. Working very well this way, with the exception the value never changes, just the Text of the cell. So I just test for that and manual change my models in the CellCHanged event.