Hi allI am using "NetAdvantage 2009.2" and I am tryingto add a TreeView to a column.Does anybody know how to add a TreeView Controlto a UltraGrid Column ?The treeview is instanced and loaded. On the treeviewclick, the selected node as text will be returned into the cell value.Thanks for any help .Best regardsFrank Uray
Hi Frank,
Do you want the tree inside the cell? Or do you want a dropdown in the cell that displays the tree?
If you want a tree inside each cell, then you should check out the samples for the new UltraControlContainerEditor.
Hi MikeThank you for your answer.Well, the tree should be in the dropdown.Can you give me a hint where to find the UltraControlContainerEditor ?Thanks and best regardsFrank Uray
The link describes how you use an editor (an UltraTextEditor is used in the example) to place a dropdown button in a grid cell that has a control on it. The control you place on the dropdown can be anything you want - in your case, you want a tree control.
Hi MikeDo I understand right, I have to create a DropDownEditorButton and placemy control (treeview) on it ? Like this ?DropDownEditorButton button = new DropDownEditorButton();button.Control = MyTreeView;But how do I tell the Grid column to use this button (TreeView) ?DisplayLayout.Bands[0].Columns["Test"].??When I use .Editor I get a conversion exception:"Cannot implicitly convert type 'Infragistics.Win.UltraWinEditors.DropDownEditorButton' to 'Infragistics.Win.EmbeddableEditorBase'"Can you give me some more help on that ?Thanks and best regardsFrank Uray
That's correct up to a point, but you seem to have stopped mid-way through the sample code. A button is not an editor. You need to put that button into an editor, such as UltraTextEditor's ButtonsRight collection. Then you use the UltraTextEditor as the EditorComponent of the column.
Hi MikeThanks, now I got it ... :-)))I did read the sample, but I always was thinking I dont need a editor ... I need a Treeview ... :-))It is working fine now, I just need to find out the right events for gettingdata back from the Treeview into the cell.Best regardsFrank Uray
i m a small level programmer learning .can share me your raw code so that i could use treeview in cell of ultra grid
Hello DD,
Could you please review the sample attached to this post and see if it meets your requirements.Please feel free to let me know if I misunderstood you or if you have any other questions.