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
405
SetDataBinding to nodescollection of UltraTreeNode
posted

Hi, My problem walks around binding a Objectcollection to the nodesCollection of a node. I have few static nodes and these static nodes shud be populated with child nodes(Objectcollection,exposed as property from other object ). I dont want to loop thru the ObjectCollection for each object and then create and add the node. I tried Node.Nodes.SetDataBinding(ObjectCollection, "NamedPropertyInObjectsOfTheCollection"). But it always throws NullReferenceException.

Can anyone help me out?

Thanks

Parents
  • 469350
    Verified Answer
    Offline posted

     Where is the NullReferenceException occurring?

    What does the call stack look like? 

    What is "NamedPropertyInObjectsOfTheCollection"? If you are using a collection as the data source, why are you passing in a DataMember?

Reply Children