Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
395
Multi select with ultrawin tree in property grid format
posted

Hey!

I have ultrawintree in property grid format. I want to enable multiselct i.e I can select multiple rows at a given time in the tree. I used following :-

 Me.uTree.Override.SelectionType = SelectType.ExtendedAutoDrag
 Me.uTree.SelectionBehavior = SelectionBehavior.ExtendedAcrossCollections
 Me.uTree.HideSelection = False

This does not help me to do multiselect. Please let me know if I am missing anything. Your help is greatly appreciated.

Thank you!

 

 

Parents
No Data
Reply
  • 48586
    posted

    Hello,

     

    In order to allow multiselect of UltraTree control you should set the  following settings of the control:

         this.ultraTree1.BorderStyle = Infragistics.Win.UIElementBorderStyle.None;

                this.ultraTree1.ColumnSettings.AllowCellEdit = Infragistics.Win.UltraWinTree.AllowCellEdit.Full;

                this.ultraTree1.ColumnSettings.TabNavigation = Infragistics.Win.UltraWinTree.TabNavigation.NextCell;

                this.ultraTree1.Dock = System.Windows.Forms.DockStyle.Fill;

                this.ultraTree1.Location = new System.Drawing.Point(0, 31);

                 this.ultraTree1.Name = "ultraTree1";

                this.ultraTree1.Override.SelectionType = Infragistics.Win.UltraWinTree.SelectType.Extended;

                this.ultraTree1.SelectionBehavior = Infragistics.Win.UltraWinTree.SelectionBehavior.ExtendedAcrossCollections;

                this.ultraTree1.Size = new System.Drawing.Size(232, 199);

     

    If you are set UltraTree.Override.CellClickAction = Infragistics.Win.UltraWinTree.CellClickAction.EditCell, then when user click in the cell tree will enter in edit mode and user wouldn’t be able to select several nodes.

     

    Let me know if you have any further questions.

Children