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
415
How to programmatically enter edit mode on a node
posted

I tried:

Infragistics.Win.UltraWinTree.UltraTreeNode node = uiUserTree.SelectedNodes[0];

node.AllowCellEdit = Infragistics.Win.UltraWinTree.AllowCellEdit.Full;

uiUserTree.Focus();

uiUserTree.PerformAction(Infragistics.Win.UltraWinTree.UltraTreeAction.EnterEditMode,false,false);

and this doesn't work....

 

Just want to have a button on the for that makes the selected node enter edit mode.  Ideas?

Parents
No Data
Reply
  • 69832
    Suggested Answer
    Offline posted

    The reason performing that action doesn't work is probably because you did not set the ActiveCell first. PerformAction works similarly to how keyboard actions work in that the control must be in a particular state, or the action won't be executed. You can either set the ActiveCell first, or use the UltraTreeNode.BeginCellEdit method, which will activate the cell first.

Children
No Data