Hi,
I need a specific column in my tree to be a drop down list. I can see the drop down arrow but when I click on it nothing happen. How can I have a simple drop down for a specific column?
Included is a screenshot.
Thanks!!!
private void InitializeUI() { Infragistics.Win.AppStyling.StyleManager.Load(@"C:\Users\Public\Documents\Infragistics\NetAdvantage 2011.2\Windows Forms\Samples\Data\StyleLibrary\IG.isl"); this.batchTreeControl.ViewStyle = Infragistics.Win.UltraWinTree.ViewStyle.FreeForm; this.batchTreeControl.ViewStyle = Infragistics.Win.UltraWinTree.ViewStyle.FreeForm; batchTreeControl.Override.UseEditor = DefaultableBoolean.True; UltraTreeNode batches = this.batchTreeControl.Nodes.Add("batches", "Batches"); UltraTreeNode mybatchNode = batches.Nodes.Add("mybatch", "My Batch"); UltraTreeColumnSet columnSet = new UltraTreeColumnSet(); mybatchNode.Override.ColumnSet = columnSet; columnSet.Columns.Add("Name"); columnSet.Columns.Add("Attribute"); columnSet.Columns["Attribute"].DataType = typeof(String); columnSet.Columns["Attribute"].AllowCellEdit = AllowCellEdit.Full; ValueList valueAttributes = new ValueList(); valueAttributes.ValueListItems.Add("Batch", "Batch"); valueAttributes.ValueListItems.Add("Plate ID", "Plate ID"); valueAttributes.ValueListItems.Add("Job Code", "Job Code"); columnSet.Columns["Attribute"].ValueList = valueAttributes; mybatchNode.Cells["Name"].Value = "My Batch"; mybatchNode.Cells["Attribute"].Value = "Batch"; }
Thanks, this solved my issue.
hi Joseph,To dropdown the list in the cell, please set the CellClickAction property in the Override to EditCell.
this.batchTreeControl.Override.CellClickAction = CellClickAction.EditCell
thanks,Josheela