我需要dropdown
在Ultrawintree
节点中绑定 a 。当用户双击节点的单元格时,它应该是可编辑的,因此我需要在dropdown
. 这样用户就可以选择值并保存/更新。
//代码
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
Dim columnSet As UltraTreeColumnSet = Me.ultraTree1.ColumnSettings.ColumnSets(0)
' Use the ActiveCellAppearance to bring attention to the cell
' with the input focus
columnSet.ActiveCellAppearance.BackColor = Color.Red
columnSet.ActiveCellAppearance.ForeColor = Color.White
' Set AllowCellEdit to 'ActivateOnly' so that clicking a cell does
' not put in into edit mode immediately
columnSet.AllowCellEdit = AllowCellEdit.Full
' Enable tooltips for cells whose value is not fully visible
columnSet.TipStyleCell = TipStyleCell.Show
End Sub
因此,当按钮单击发生时,单元格是完全可编辑的。但不是那样,我需要dropdown
在单元格中绑定 a 。那可能吗?
我怎样才能做到这一点?
注意:我使用的是 Infragistics 12.1版