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
144
CheckState of UltraTree Node
posted
I am trying to change the CheckedState of a Node by doing 'nNode.CheckedState = System.Windows.Forms.CheckState.Checked'. This call throws an exception "Index was out of range. Must be non-negative and less than the size of the collection.\r\nParameter name: index". I think my treeview is not created when I change CheckedState. How do I solve this problem. Thank you, Vinay
Parents
No Data
Reply
  • 69832
    Offline posted

    In order to set the CheckState of a node you must have a reference to the node. The solution to your problem is to assign the CheckState after the control and its nodes are created.

Children
No Data