Hi All,
I am trying to set an ultradropdown as the editor of a tree node cell but I can't see how to do this. I assumed something like node.Cells[2].EditorControl = myUltraDropDown would work but it doesn't.
Can anyone point me in the right direction?
Thanks,
Denis
UltraTreeNodeCell (unlike UltraGridCell) does not expose a ValueList property or an EditorControl property. You can assign an Infragistics.Win.UltraWinGrid.UltraDropDown instance to the UltraTreeNodeColumn's ValueList property (or an Infragistics.Win.UltraWinGrid.UltraCombo instance to its EditorControl property), and change the contents of the data source to which it is bound in response to the BeforeCellEnterEditMode event, thus presenting a different list depending on which cell is being edited.
Thanks Mike, is it possible to add multiple columns to the drop down of the UltraComboEditor or will I have to use a different editor?
Hm, I thought it did. If not, then what you would have to do is use an UltraCombo or UltraComboEditor instead of the UltraDropDown. Then you can use the EditorControl property on the cell.
Hi Mike,
Does the UltraTreeNodeCell have a ValueList property? I can't seem to locate it if it does. Setting the valuelist for the column doesn't help as each cell in the column needs a different valuelist.
Hi Dennis,
Use the ValueList propety for the cell (or Column) instead of EditorControl.