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
460
Node text is not displayed
posted

Hi folks,

I tried to create a custom ultratree with multiple columns but node text is not displated while all nodes were successfully created. I have a sample code attached. Thanks very much.

 

CustomizedUltraTree.zip
Parents
No Data
Reply
  • 69832
    Suggested Answer
    Offline posted

    In CustomizedUltraTree.AddNode, you are calling UltraTreeNode.SetCellValue, passing in columns (_IndexColumn, _ValueColumn) that do not belong to that control's RootColumnSet.Columns collection. This is because after the CustomizedUltraTree.Initialize method executes, the MainForm.InitializeComponent method executes, which contains code to repopulate the CustomizedUltraTree's RootColumnSet.Columns collection.

Children
No Data