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.
I am just wanted to know if you need any further assistance on this issue? Did you test my sample ?
Thank you for using Infragistics Components.
Sincerely,HristoDeveloper Support EngineerInfragistics, Inc.
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.
Ok . So I think I am trying to do something which is not supported by design seems like. Please correct me if I am wrong.
In the unltrawintree, I have 3 columns. It is property grid type tree. Out of these 3 columns, the first column is checkbox editor type, the second one is property i.e text and read only and third column is value i.e text and read only. So only first column is not read only and user can play with it.
So I am trying to do following:-
1. Enable multiselect on the tree.
2. User selects multiple rows in the tree.
3.He marks one of the row as checked for example in the checkbox column and all other rows in the selection gets marked as checked.
4. Step 3 hold true if he marks one of the rows as unchecked and all other rows in selection will be marked as unchecked.
So I tried using the code you provided but seems like no luck.
Please let me know what you think.
I have trying to follow your requirements to make UltraTree with 3 columns. First is Boolean column and it is editable, second is string column and it is read only and third is string column and it is editable . If you press “Ctrl” now you are able to select more than one node. If you click on editable column, clicked cells entering in edit mode and customer is able to edit its content. Please run the sample and let me know if this is what you are looking for.
I hope this help you.
Thank you very much. It helped exactly as I was looking for! Thanks a ton!