Skip to main content

Using a Treeview control how can you put a Node into Edit Mode ?

  • February 15, 2013
  • 0 replies
  • 0 views

Problem:

Using a Treeview control how can you put a Node into Edit Mode ?

A tree view allows you to edit the label of a TreeViewItem. Can you programmatically force a item into this mode.

Resolution:

You can do this using the "EditLabel" method. The following code snippit shows how you can create a treeviewitem and put it into edit mode:-

INVOKE aTreeview "addItemZ" USING aTreeView       

                                    Term-Field    

                          RETURNING ws-treenode   

                                                  

INVOKE ws-treenode "EditLabel" USING ws-treenode  

Old KB# 4443